syntax highlightinggit status

This commit is contained in:
2025-09-21 15:32:17 +02:00
parent e8b7a76ddb
commit 81af0683d1
7 changed files with 4261 additions and 3347 deletions

View File

@@ -12,12 +12,13 @@ module.exports = grammar({
reserved: {
toplevel_kw: $ =>
['type', 'with', 'extensible', 'extend', 'union', 'def', 'await', 'if', 'then', 'else', 'in', 'match'],
['type', 'with', 'extensible', 'extend', 'union', 'def', 'await', 'let', 'if', 'then', 'else', 'in', 'match'],
},
extras: ($) => [
/\s/, // whitespace
$.comment,
$.section_comment,
],
word: $ => $._identifier_tok,
@@ -55,6 +56,9 @@ module.exports = grammar({
comment: $ =>
token(seq("# ", /.*/)),
section_comment: $ =>
token(seq("###", /.*/)),
doc_comment: $ =>
repeat1(seq('## ', token.immediate(/.*/))),