mirror of
https://github.com/Nexoniarz/Finch.git
synced 2026-11-03 08:54:25 +00:00
docs, Kate and VS Code: const, if as a value, """ text, 1e9, str(x, 2), min/max/abs/clamp, import a/b and as, fs, C unions and macros
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016GzNP6r8dg6WDxUVZy8wjL
This commit is contained in:
parent
f2d6480749
commit
17863ecf7b
8 changed files with 163 additions and 35 deletions
|
|
@ -106,6 +106,9 @@
|
|||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#longstrings"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
|
|
@ -125,7 +128,7 @@
|
|||
},
|
||||
{
|
||||
"name": "storage.type.struct.finch",
|
||||
"match": "\\b(struct|enum)\\b"
|
||||
"match": "\\b(struct|enum|const)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.modifier.finch",
|
||||
|
|
@ -243,13 +246,24 @@
|
|||
},
|
||||
{
|
||||
"name": "constant.numeric.float.finch",
|
||||
"match": "\\b\\d[\\d_]*\\.\\d[\\d_]*\\b"
|
||||
"match": "\\b\\d[\\d_]*(\\.\\d[\\d_]*([eE][+-]?\\d+)?|[eE][+-]?\\d+)\\b"
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.integer.finch",
|
||||
"match": "\\b\\d[\\d_]*\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"longstrings": {
|
||||
"name": "string.quoted.triple.finch",
|
||||
"begin": "\"\"\"",
|
||||
"end": "\"\"\"",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.character.escape.finch",
|
||||
"match": "\\\\[ntr0\\\\\"']"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue