syntax highlightinggit status
This commit is contained in:
@@ -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(/.*/))),
|
||||
|
||||
|
Reference in New Issue
Block a user