Add python code macros and spelling

This commit is contained in:
E Dunbar 2025-05-15 14:24:16 -05:00
parent ed44ef8755
commit 4be821f08d
6 changed files with 7754 additions and 7291 deletions

View file

@ -47,6 +47,7 @@ module.exports = grammar({
$.class,
$.macro,
$.reader,
$.py,
),
_form: $ => seq(optional($.sugar), choice($._identifier, $._sequence, $._string)),
@ -225,6 +226,14 @@ module.exports = grammar({
repeat($._element),
')',
),
py: $ => seq(
'(',
choice('py', 'pys'),
'"',
$.code,
'"',
')',
),
module_import: $ => seq(
choice(
@ -308,6 +317,8 @@ module.exports = grammar({
']',
),
code: _ => /[^"]*/,
_variable: $ => choice(
$.symbol,
$.dotted_identifier,