aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/cairo/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/cairo/highlights.scm')
-rw-r--r--runtime/queries/cairo/highlights.scm95
1 files changed, 1 insertions, 94 deletions
diff --git a/runtime/queries/cairo/highlights.scm b/runtime/queries/cairo/highlights.scm
index c10ce5e0..ae55c7fa 100644
--- a/runtime/queries/cairo/highlights.scm
+++ b/runtime/queries/cairo/highlights.scm
@@ -1,94 +1 @@
-(ERROR) @error
-
-((identifier) @constant
- (#match? @constant "^[A-Z][A-Z\\d_]+$"))
-((identifier_def) @constant
- (#match? @constant "^[A-Z][A-Z\\d_]+$"))
-
-((identifier) @namespace
- (#match? @namespace "^[A-Z]"))
-((identifier_def) @namespace
- (#match? @namespace "^[A-Z]"))
-
-(identifier "." @punctuation)
-(function_call (identifier) @function)
-(func (identifier_def) @function)
-
-(string) @string
-(atom_short_string) @string
-
-(code_element_directive) @keyword.directive
-"return" @keyword
-
-(number) @constant.numeric
-(atom_hex_number) @constant.numeric
-
-(comment) @comment
-
-"*" @special
-(type) @type
-
-[
- "felt"
- ; "codeoffset"
-] @type.builtin
-
-[
- "if"
- "else"
- "assert"
- "with"
- "with_attr"
-] @keyword.control
-
-[
- "from"
- "import"
- "func"
- "namespace"
-] @keyword ; keyword.declaration
-
-[
- "let"
- "const"
- "local"
- "struct"
- "alloc_locals"
- "tempvar"
-] @keyword
-
-(decorator) @attribute
-
-[
- "="
- "+"
- "-"
- "*"
- "/"
- ; "%"
- ; "!"
- ; ">"
- ; "<"
- ; "\\"
- ; "&"
- ; "?"
- ; "^"
- ; "~"
- "=="
- "!="
- "new"
-] @operator
-
-[
- "("
- ")"
- "["
- "]"
- "{"
- "}"
-] @punctuation.bracket
-
-[
- ","
- ":"
-] @punctuation.delimiter
+; inherits: rust