diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2023-06-12 09:54:30 -0600 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2025-05-12 18:43:40 +0200 |
| commit | 692b051b09935653befdb8f7ba8afdb640adf17b (patch) | |
| tree | 167162b6b129ae04f68c5735078521a72917c742 /queries/bass | |
| parent | feat(c-family): inherit injections (diff) | |
| download | nvim-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/bass')
| -rw-r--r-- | queries/bass/folds.scm | 5 | ||||
| -rw-r--r-- | queries/bass/highlights.scm | 126 | ||||
| -rw-r--r-- | queries/bass/indents.scm | 31 | ||||
| -rw-r--r-- | queries/bass/injections.scm | 26 | ||||
| -rw-r--r-- | queries/bass/locals.scm | 26 |
5 files changed, 0 insertions, 214 deletions
diff --git a/queries/bass/folds.scm b/queries/bass/folds.scm deleted file mode 100644 index d99e0c1ac..000000000 --- a/queries/bass/folds.scm +++ /dev/null @@ -1,5 +0,0 @@ -[ - (list) - (scope) - (cons) -] @fold diff --git a/queries/bass/highlights.scm b/queries/bass/highlights.scm deleted file mode 100644 index f84993af1..000000000 --- a/queries/bass/highlights.scm +++ /dev/null @@ -1,126 +0,0 @@ -; Variables -(list - (symbol) @variable) - -(cons - (symbol) @variable) - -(scope - (symbol) @variable) - -(symbind - (symbol) @variable) - -; Constants -((symbol) @constant - (#lua-match? @constant "^_*[A-Z][A-Z0-9_]*$")) - -; Functions -(list - . - (symbol) @function) - -; Namespaces -(symbind - (symbol) @module - . - (keyword)) - -; Includes -((symbol) @keyword.import - (#any-of? @keyword.import "use" "import" "load")) - -; Keywords -((symbol) @keyword - (#any-of? @keyword "do" "doc")) - -; Special Functions -; Keywords construct a symbol -(keyword) @constructor - -((list - . - (symbol) @keyword.function - . - (symbol) @function - (symbol)? @variable.parameter) - (#any-of? @keyword.function "def" "defop" "defn" "fn")) - -((cons - . - (symbol) @keyword.function - . - (symbol) @function - (symbol)? @variable.parameter) - (#any-of? @keyword.function "def" "defop" "defn" "fn")) - -((symbol) @function.builtin - (#any-of? @function.builtin - "dump" "mkfs" "json" "log" "error" "now" "cons" "wrap" "unwrap" "eval" "make-scope" "bind" - "meta" "with-meta" "null?" "ignore?" "boolean?" "number?" "string?" "symbol?" "scope?" "sink?" - "source?" "list?" "pair?" "applicative?" "operative?" "combiner?" "path?" "empty?" "thunk?" "+" - "*" "quot" "-" "max" "min" "=" ">" ">=" "<" "<=" "list->source" "across" "emit" "next" - "reduce-kv" "assoc" "symbol->string" "string->symbol" "str" "substring" "trim" "scope->list" - "string->fs-path" "string->cmd-path" "string->dir" "subpath" "path-name" "path-stem" - "with-image" "with-dir" "with-args" "with-cmd" "with-stdin" "with-env" "with-insecure" - "with-label" "with-port" "with-tls" "with-mount" "thunk-cmd" "thunk-args" "resolve" "start" - "addr" "wait" "read" "cache-dir" "binds?" "recall-memo" "store-memo" "mask" "list" "list*" - "first" "rest" "length" "second" "third" "map" "map-pairs" "foldr" "foldl" "append" "filter" - "conj" "list->scope" "merge" "apply" "id" "always" "vals" "keys" "memo" "succeeds?" "run" "last" - "take" "take-all" "insecure!" "from" "cd" "wrap-cmd" "mkfile" "path-base" "not")) - -((symbol) @function.macro - (#any-of? @function.macro - "op" "current-scope" "quote" "let" "provide" "module" "or" "and" "curryfn" "for" "$" "linux")) - -; Conditionals -((symbol) @keyword.conditional - (#any-of? @keyword.conditional "if" "case" "cond" "when")) - -; Repeats -((symbol) @keyword.repeat - (#any-of? @keyword.repeat "each")) - -; Operators -((symbol) @operator - (#any-of? @operator "&" "*" "+" "-" "<" "<=" "=" ">" ">=")) - -; Punctuation -[ - "(" - ")" -] @punctuation.bracket - -[ - "{" - "}" -] @punctuation.bracket - -[ - "[" - "]" -] @punctuation.bracket - -((symbol) @punctuation.delimiter - (#eq? @punctuation.delimiter "->")) - -; Literals -(string) @string - -(escape_sequence) @string.escape - -(path) @string.special.url - -(number) @number - -(boolean) @boolean - -[ - (ignore) - (null) -] @constant.builtin - -"^" @character.special - -; Comments -(comment) @comment @spell diff --git a/queries/bass/indents.scm b/queries/bass/indents.scm deleted file mode 100644 index 27b976f21..000000000 --- a/queries/bass/indents.scm +++ /dev/null @@ -1,31 +0,0 @@ -[ - (list) - (scope) - (cons) -] @indent.begin - -[ - ")" - "}" - "]" -] @indent.end - -[ - "(" - ")" -] @indent.branch - -[ - "{" - "}" -] @indent.branch - -[ - "[" - "]" -] @indent.branch - -[ - (ERROR) - (comment) -] @indent.auto diff --git a/queries/bass/injections.scm b/queries/bass/injections.scm deleted file mode 100644 index 298a8d070..000000000 --- a/queries/bass/injections.scm +++ /dev/null @@ -1,26 +0,0 @@ -((comment) @injection.content - (#set! injection.language "comment")) - -((function_call - name: (ident) @_name - . - (simplexpr) - . - (simplexpr - (string - (string_fragment) @injection.content)+)) - (#any-of? @_name "replace" "search" "matches" "captures") - (#set! injection.language "regex") - (#set! injection.combined)) - -((function_call - name: (ident) @_name - . - (simplexpr) - . - (simplexpr - (string - (string_fragment) @injection.content)+)) - (#eq? @_name "jq") - (#set! injection.language "jq") - (#set! injection.combined)) diff --git a/queries/bass/locals.scm b/queries/bass/locals.scm deleted file mode 100644 index daed7e5e1..000000000 --- a/queries/bass/locals.scm +++ /dev/null @@ -1,26 +0,0 @@ -; Scopes -[ - (list) - (scope) - (cons) -] @local.scope - -; References -(symbol) @local.reference - -; Definitions -((list - . - (symbol) @_fnkw - . - (symbol) @local.definition.function - (symbol)? @local.definition.parameter) - (#any-of? @_fnkw "def" "defop" "defn" "fn")) - -((cons - . - (symbol) @_fnkw - . - (symbol) @local.definition.function - (symbol)? @local.definition.parameter) - (#any-of? @_fnkw "def" "defop" "defn" "fn")) |
