Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/rustfmt/highlights.scm')
| -rw-r--r-- | runtime/queries/rustfmt/highlights.scm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/runtime/queries/rustfmt/highlights.scm b/runtime/queries/rustfmt/highlights.scm new file mode 100644 index 00000000..a4a99f99 --- /dev/null +++ b/runtime/queries/rustfmt/highlights.scm @@ -0,0 +1,29 @@ +; (format_string) @string + +(escaped) @constant.character.escape + +[ + "#" + (type) +] @special + +[ + (sign) + (fill) + (align) + (width) +] @operator + +(number) @constant.numeric + +(colon) @punctuation + +(identifier) @variable + +((identifier) @constant + (#match? @constant "^[A-Z_]+$")) + +[ + "{" + "}" +] @punctuation.special |