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/linkerscript | |
| 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/linkerscript')
| -rw-r--r-- | queries/linkerscript/folds.scm | 6 | ||||
| -rw-r--r-- | queries/linkerscript/highlights.scm | 173 | ||||
| -rw-r--r-- | queries/linkerscript/indents.scm | 11 | ||||
| -rw-r--r-- | queries/linkerscript/injections.scm | 2 | ||||
| -rw-r--r-- | queries/linkerscript/locals.scm | 16 |
5 files changed, 0 insertions, 208 deletions
diff --git a/queries/linkerscript/folds.scm b/queries/linkerscript/folds.scm deleted file mode 100644 index 0fc77b1a7..000000000 --- a/queries/linkerscript/folds.scm +++ /dev/null @@ -1,6 +0,0 @@ -[ - (sections_command) - (output_section) - (memory_command) - (phdrs_command) -] @fold diff --git a/queries/linkerscript/highlights.scm b/queries/linkerscript/highlights.scm deleted file mode 100644 index 12330169e..000000000 --- a/queries/linkerscript/highlights.scm +++ /dev/null @@ -1,173 +0,0 @@ -; Keywords -[ - "ENTRY" - "SECTIONS" - "AT" - "OVERLAY" - "NOCROSSREFS" - "MEMORY" - "PHDRS" - "FILEHDR" -] @keyword - -; Conditionals -(conditional_expression - [ - "?" - ":" - ] @keyword.conditional.ternary) - -; Variables -(symbol) @variable - -(filename) @string.special.path - -; Functions -(call_expression - function: (symbol) @function.call) - -((call_expression - function: (symbol) @keyword.directive) - (#eq? @keyword.directive "DEFINED")) - -((call_expression - function: (symbol) @function.builtin) - (#any-of? @function.builtin - "ABSOLUTE" "ALIAS" "ADDR" "ALIGN" "ALIGNOF" "BASE" "BLOCK" "CHIP" "DATA_SEGMENT_ALIGN" - "DATA_SEGMENT_END" "DATA_SEGMENT_RELRO_END" "END" "LENGTH" "LOADADDR" "LOG2CEIL" "MAX" "MIN" - "NEXT" "ORIGIN" "SEGMENT_START" "SIZEOF" "BYTE" "FILL" "LONG" "SHORT" "QUAD" "SQUAD" "WORD")) - -[ - "KEEP" - "PROVIDE" - "PROVIDE_HIDDEN" -] @function.builtin - -; Types -(section_type - "(" - [ - "NOLOAD" - "DSECT" - "COPY" - "INFO" - "OVERLAY" - ] @type.builtin - ")") - -; Fields -[ - "ORIGIN" - "org" - "o" - "LENGTH" - "len" - "l" -] @variable.member - -; Constants -((symbol) @constant - (#lua-match? @constant "^[%u_][%u%d_]+$")) - -; Labels -(entry_command - name: (symbol) @label) - -(output_section - name: (symbol) @label) - -(memory_command - name: (symbol) @label) - -(phdrs_command - name: (symbol) @label) - -(region - ">" - (symbol) @label) - -(lma_region - ">" - (symbol) @label) - -(phdr - ":" - (symbol) @label) - -([ - (symbol) - (filename) -] @label - (#lua-match? @label "^%.")) - -; Exceptions -"ASSERT" @keyword.exception - -[ - "/DISCARD/" - "." -] @variable.builtin - -; Operators -[ - "+" - "-" - "*" - "/" - "%" - "||" - "&&" - "|" - "&" - "==" - "!=" - ">" - ">=" - "<=" - "<" - "<<" - ">>" - "!" - "~" - "=" - "+=" - "-=" - "*=" - "/=" - "<<=" - ">>=" - "&=" - "|=" -] @operator - -; Literals -(number) @number - -(quoted_symbol) @string - -(wildcard_pattern - [ - "*" - "[" - "]" - ] @character.special) - -(attributes) @character.special - -; Punctuation -[ - "{" - "}" - "(" - ")" -] @punctuation.bracket - -[ - ":" - ";" -] @punctuation.delimiter - -">" @punctuation.special - -; Comments -(comment) @comment @spell diff --git a/queries/linkerscript/indents.scm b/queries/linkerscript/indents.scm deleted file mode 100644 index a636ba109..000000000 --- a/queries/linkerscript/indents.scm +++ /dev/null @@ -1,11 +0,0 @@ -[ - (sections_command) - (output_section) - (memory_command) - (phdrs_command) -] @indent.begin - -[ - "}" - ")" -] @indent.branch @indent.end diff --git a/queries/linkerscript/injections.scm b/queries/linkerscript/injections.scm deleted file mode 100644 index 51e6d1f6b..000000000 --- a/queries/linkerscript/injections.scm +++ /dev/null @@ -1,2 +0,0 @@ -((comment) - (#set! injection.language "comment")) diff --git a/queries/linkerscript/locals.scm b/queries/linkerscript/locals.scm deleted file mode 100644 index 6b7660370..000000000 --- a/queries/linkerscript/locals.scm +++ /dev/null @@ -1,16 +0,0 @@ -; References -[ - (symbol) - (filename) - (quoted_symbol) -] @local.reference - -; Definitions -(output_section - name: (symbol) @local.definition.var) - -(memory_command - name: (symbol) @local.definition.var) - -(phdrs_command - name: (symbol) @local.definition.var) |
