Skip to content

Commit

Permalink
minor naming
Browse files Browse the repository at this point in the history
  • Loading branch information
zeeshanlakhani committed Dec 10, 2024
1 parent 4ee5998 commit b9b8af4
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 103 deletions.
3 changes: 2 additions & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ module.exports = grammar({
),

line_continuation: (_) => /\s*\\\s*/,
method_not_constant: (_) => /[a-zA-Z_]*[a-z][a-zA-Z]*/,

preproc: ($) =>
choice(
Expand All @@ -502,7 +503,7 @@ module.exports = grammar({
"}",
),
seq(
/[a-zA-Z_]*[a-z][a-zA-Z]*/,
$.method_not_constant,
"(",
repeat(seq($.identifier, optional(","))),
")",
Expand Down
3 changes: 2 additions & 1 deletion queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"_" @keyword
"true" @constant
"false" @constant
(direction) @keyword
(direction) @
(number) @number
(bit_type) @type
(varbit_type) @type
Expand All @@ -46,6 +46,7 @@
"varbit" @type
(type_identifier) @type
(method_identifier) @function
(method_not_constant) @function
(comment) @comment
(preproc) @keyword
(annotation) @attribute
8 changes: 6 additions & 2 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions src/node-types.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b9b8af4

Please sign in to comment.