Skip to content

Commit

Permalink
feat: add custom-shader, gtk-custom-css as path directives
Browse files Browse the repository at this point in the history
  • Loading branch information
gerblesh committed Jan 4, 2025
1 parent 8147f8c commit 0386a1e
Show file tree
Hide file tree
Showing 6 changed files with 2,335 additions and 2,104 deletions.
7 changes: 4 additions & 3 deletions grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = grammar({
directive: $ => choice(
$.basic_directive,
$.palette_directive,
$.config_file_directive,
$.path_directive,
$.keybind_directive,
),

Expand Down Expand Up @@ -112,8 +112,9 @@ module.exports = grammar({
$.color
),

// `config-file` directive
config_file_directive: $ => directive_seq(alias("config-file", $.property), $.path_value),
// directives that take files as input, it's impossible to distinguish syntactically so we must list them out manually
path_property: $ => choice("config-file", "gtk-custom-css", "custom-shader"),
path_directive: $ => directive_seq(alias($.path_property, $.property), $.path_value),
path_value: $ => seq(
optional("?"),
$.string
Expand Down
25 changes: 21 additions & 4 deletions src/grammar.json

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

70 changes: 41 additions & 29 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 0386a1e

Please sign in to comment.