@@ 24,15 24,16 @@ module.exports = grammar({
),
_word: $ => choice(
- $.integer_scalar,
- $.float_scalar,
- $.true,
- $.false,
$.atom,
$.dquote_word,
$.squote_word,
),
+ // additional tokens for highlighting with type detection
+ // disabled because scfg does not actually define types
+ // other than unquoted and quoted strings
+ // this can be added back later
+ /*
true: $ => choice(
"true",
"True",
@@ 48,6 49,7 @@ module.exports = grammar({
/0b[01]+/,
),
float_scalar: $ => /[+-]?([0-9]+([.][0-9]*)?|[.][0-9]+)/,
+ */
atom: $ => /[^"\r\n'{}\s]+/,
dquote_word: $ => /"[^"\\\r\n]+"/,