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:
Nexoniarz 2026-10-29 09:40:06 +01:00
commit 17863ecf7b
8 changed files with 163 additions and 35 deletions

View file

@ -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\\\\\"']"
}
]
}
}
}