aboutsummaryrefslogtreecommitdiffstats
path: root/queries/ralph
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2023-06-12 09:54:30 -0600
committerChristian Clason <c.clason@uni-graz.at>2025-05-12 18:43:40 +0200
commit692b051b09935653befdb8f7ba8afdb640adf17b (patch)
tree167162b6b129ae04f68c5735078521a72917c742 /queries/ralph
parentfeat(c-family): inherit injections (diff)
downloadnvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.gz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.bz2
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.lz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.xz
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.tar.zst
nvim-treesitter-692b051b09935653befdb8f7ba8afdb640adf17b.zip
feat!: drop modules, general refactor and cleanup
Diffstat (limited to 'queries/ralph')
-rw-r--r--queries/ralph/highlights.scm137
-rw-r--r--queries/ralph/injections.scm2
2 files changed, 0 insertions, 139 deletions
diff --git a/queries/ralph/highlights.scm b/queries/ralph/highlights.scm
deleted file mode 100644
index e56ffa5a2..000000000
--- a/queries/ralph/highlights.scm
+++ /dev/null
@@ -1,137 +0,0 @@
-(type_identifier) @type
-
-(identifier) @variable
-
-[
- (primitive_type)
- (alph_token_id)
-] @type.builtin
-
-(var_declaration) @variable
-
-(struct_field
- (identifier) @variable.member)
-
-(arg_def
- (identifier) @variable.parameter)
-
-(event_field
- (identifier) @variable.parameter)
-
-(struct_constructor_field
- (identifier) @variable.parameter)
-
-[
- (hex_num)
- (integer)
- (typed_num)
-] @number
-
-[
- (bool)
- (bytes)
- (address)
-] @constant.builtin
-
-(func_id
- [
- (identifier)
- "!"
- ] @function)
-
-(annotation
- [
- "@"
- (identifier)
- ] @attribute)
-
-(map_def
- (identifier) @variable.parameter)
-
-"fn" @keyword.function
-
-[
- "Contract"
- "TxScript"
- "Interface"
- "AssetScript"
- "struct"
- "enum"
- "event"
- "mapping"
-] @keyword.type
-
-[
- "pub"
- "Abstract"
- (mutable)
-] @keyword.modifier
-
-[
- "while"
- "for"
-] @keyword.repeat
-
-"return" @keyword.return
-
-[
- "if"
- "else"
-] @keyword.conditional
-
-[
- "const"
- "let"
- "emit"
- "extends"
- "embeds"
- "implements"
-] @keyword
-
-[
- "("
- ")"
- "["
- "]"
- "{"
- "}"
-] @punctuation.bracket
-
-[
- "."
- ","
- ":"
- ";"
-] @punctuation.delimiter
-
-[
- "="
- "->"
- (op_byte_vec_add)
- (op_add)
- (op_sub)
- (op_mul)
- (op_exp)
- (op_mod_exp)
- (op_div)
- (op_mod)
- (op_mod_add)
- (op_mod_sub)
- (op_mod_mul)
- (op_shl)
- (op_shr)
- (op_bit_and)
- (op_xor)
- (op_bit_or)
- (op_eq)
- (op_ne)
- (op_lt)
- (op_le)
- (op_gt)
- (op_ge)
- (op_and)
- (op_or)
- (op_not)
-] @operator
-
-(line_comment) @comment @spell
diff --git a/queries/ralph/injections.scm b/queries/ralph/injections.scm
deleted file mode 100644
index 36849c873..000000000
--- a/queries/ralph/injections.scm
+++ /dev/null
@@ -1,2 +0,0 @@
-((line_comment) @injection.content
- (#set! injection.language "comment"))