on master help sign in
add GNU assembler (gas) support #8291)
941dc6cCyrill Schenkel
book/src/generated/lang-support.md+1
@@ -44,6 +44,7 @@
44| forth | ✓ | | | `forth-lsp` |
44| forth | ✓ | | | `forth-lsp` |
45| fortran | ✓ | | ✓ | `fortls` |
45| fortran | ✓ | | ✓ | `fortls` |
46| fsharp | ✓ | | | `fsautocomplete` |
46| fsharp | ✓ | | | `fsautocomplete` |
47+| gas | ✓ | ✓ | | |
47| gdscript | ✓ | ✓ | ✓ | |
48| gdscript | ✓ | ✓ | ✓ | |
48| gemini | ✓ | | | |
49| gemini | ✓ | | | |
49| git-attributes | ✓ | | | |
50| git-attributes | ✓ | | | |
languages.toml+14−1
@@ -2495,7 +2495,7 @@ source = { git = "https://github.com/erasin/tree-sitter-po", rev = "417cee9abb20
2495[[language]]
2495[[language]]
2496name = "nasm"
2496name = "nasm"
2497scope = "source.nasm"
2497scope = "source.nasm"
2498−file-types = ["asm", "s", "S", "nasm"]
2498+file-types = ["asm", "S", "nasm"]
2499injection-regex = "n?asm"
2499injection-regex = "n?asm"
2500roots = []
2500roots = []
2501comment-token = ";"
2501comment-token = ";"
@@ -2505,6 +2505,19 @@ indent = { tab-width = 8, unit = " " }
2505name = "nasm"
2505name = "nasm"
2506source = { git = "https://github.com/naclsn/tree-sitter-nasm", rev = "a0db15db6fcfb1bf2cc8702500e55e558825c48b" }
2506source = { git = "https://github.com/naclsn/tree-sitter-nasm", rev = "a0db15db6fcfb1bf2cc8702500e55e558825c48b" }
2507
2507
2508+[[language]]
2509+name = "gas"
2510+scope = "source.gas"
2511+file-types = ["s"]
2512+injection-regex = "gas"
2513+roots = []
2514+comment-token = "#"
2515+indent = { tab-width = 8, unit = " " }
2516+
2517+[[grammar]]
2518+name = "gas"
2519+source = { git = "https://github.com/sirius94/tree-sitter-gas", rev = "60f443646b20edee3b7bf18f3a4fb91dc214259a" }
2520+
2508[[language]]
2521[[language]]
2509name = "rst"
2522name = "rst"
2510scope = "source.rst"
2523scope = "source.rst"
runtime/queries/gas/highlights.scmnew file+21
@@ -0,0 +1,21 @@
1+(comment) @comment
2+(number) @constant.numeric
3+(directive_name) @keyword.directive
4+(symbol) @variable
5+(label) @function
6+(label)
7+(instruction_prefix) @keyword
8+(instruction_name) @function.special
9+(register) @constant.builtin
10+(string) @string
11+(char) @constant.character
12+(type) @type
13+(constant "$" @constant)
14+(operand_modifier) @attribute
15+
16+(expression
17+ ["-" "+" "*" "/" "="] @operator)
18+
19+["(" ")"] @punctuation.bracket
20+
21+["," ":"] @punctuation.delimiter
runtime/queries/gas/injections.scmnew file+2
@@ -0,0 +1,2 @@
1+((comment) @injection.content
2+ (#set! injection.language "comment"))
runtime/queries/gas/textobjects.scmnew file+2
@@ -0,0 +1,2 @@
1+(comment) @comment.inside
2+(comment)+ @comment.around