aboutsummaryrefslogtreecommitdiffstats
path: root/queries/rbs
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/rbs
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/rbs')
-rw-r--r--queries/rbs/folds.scm5
-rw-r--r--queries/rbs/highlights.scm162
-rw-r--r--queries/rbs/indents.scm24
-rw-r--r--queries/rbs/injections.scm2
4 files changed, 0 insertions, 193 deletions
diff --git a/queries/rbs/folds.scm b/queries/rbs/folds.scm
deleted file mode 100644
index ff8e7c588..000000000
--- a/queries/rbs/folds.scm
+++ /dev/null
@@ -1,5 +0,0 @@
-[
- (class_decl)
- (module_decl)
- (interface_decl)
-] @fold
diff --git a/queries/rbs/highlights.scm b/queries/rbs/highlights.scm
deleted file mode 100644
index 9de9c427d..000000000
--- a/queries/rbs/highlights.scm
+++ /dev/null
@@ -1,162 +0,0 @@
-; Use directive
-(use_clause
- [
- (type_name)
- (simple_type_name)
- ] @type)
-
-; Builtin constants and Keywords
-[
- "true"
- "false"
-] @boolean
-
-"nil" @constant.builtin
-
-[
- "use"
- "as"
- "module"
- "def"
- "attr_reader"
- "attr_writer"
- "attr_accessor"
- "end"
- "alias"
-] @keyword
-
-[
- "interface"
- "type"
- "class"
-] @keyword.type
-
-(class_decl
- "end" @keyword.type)
-
-(interface_decl
- "end" @keyword.type)
-
-"def" @keyword.function
-
-; Members of declaration
-[
- "include"
- "extend"
- "prepend"
-] @function.method
-
-(visibility) @keyword.modifier
-
-(comment) @comment @spell
-
-(method_member
- (method_name
- [
- (identifier)
- (identifier_suffix)
- (constant)
- (constant_suffix)
- (operator)
- (setter)
- (constant_setter)
- ] @function.method))
-
-(attribute_member
- (method_name
- [
- (identifier)
- (identifier_suffix)
- (constant)
- (constant_suffix)
- (operator)
- (setter)
- (constant_setter)
- ] @function.method))
-
-[
- (ivar_name)
- (cvar_name)
-] @variable.member
-
-(alias_member
- (method_name) @function)
-
-(class_name
- (constant) @type)
-
-(module_name
- (constant) @type)
-
-(interface_name
- (interface) @type)
-
-(alias_name
- (identifier) @type)
-
-(type_variable) @constant
-
-(namespace
- (constant) @module)
-
-(builtin_type) @type.builtin
-
-(const_name
- (constant) @constant)
-
-(global_name) @variable
-
-; Standard Arguments
-(parameter
- (var_name) @variable.parameter)
-
-; Keyword Arguments
-(keyword) @variable.parameter
-
-; Self
-(self) @variable.builtin
-
-; Literal
-(type
- (symbol_literal) @string.special.symbol)
-
-(type
- (string_literal
- (escape_sequence) @string.escape))
-
-(type
- (string_literal) @string)
-
-(type
- (integer_literal) @number)
-
-(type
- (record_type
- key: (record_key) @string.special.symbol))
-
-; Operators
-[
- "="
- "->"
- "<"
- "**"
- "*"
- "&"
- "|"
- "^"
-] @operator
-
-; Punctuation
-[
- "("
- ")"
- "["
- "]"
- "{"
- "}"
-] @punctuation.bracket
-
-[
- ","
- "."
-] @punctuation.delimiter
diff --git a/queries/rbs/indents.scm b/queries/rbs/indents.scm
deleted file mode 100644
index f6da5b10b..000000000
--- a/queries/rbs/indents.scm
+++ /dev/null
@@ -1,24 +0,0 @@
-[
- (class_decl)
- (module_decl)
- (interface_decl)
- (parameters)
- (tuple_type)
- (record_type)
-] @indent.begin
-
-[
- "end"
- ")"
- "]"
- "}"
-] @indent.end
-
-[
- "end"
- ")"
- "}"
- "]"
-] @indent.branch
-
-(comment) @indent.auto
diff --git a/queries/rbs/injections.scm b/queries/rbs/injections.scm
deleted file mode 100644
index 2f0e58eb6..000000000
--- a/queries/rbs/injections.scm
+++ /dev/null
@@ -1,2 +0,0 @@
-((comment) @injection.content
- (#set! injection.language "comment"))