mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
add GNU assembler (gas) support #8291)
This commit is contained in:
parent
19d44b6fde
commit
941dc6c614
@ -44,6 +44,7 @@
|
|||||||
| forth | ✓ | | | `forth-lsp` |
|
| forth | ✓ | | | `forth-lsp` |
|
||||||
| fortran | ✓ | | ✓ | `fortls` |
|
| fortran | ✓ | | ✓ | `fortls` |
|
||||||
| fsharp | ✓ | | | `fsautocomplete` |
|
| fsharp | ✓ | | | `fsautocomplete` |
|
||||||
|
| gas | ✓ | ✓ | | |
|
||||||
| gdscript | ✓ | ✓ | ✓ | |
|
| gdscript | ✓ | ✓ | ✓ | |
|
||||||
| gemini | ✓ | | | |
|
| gemini | ✓ | | | |
|
||||||
| git-attributes | ✓ | | | |
|
| git-attributes | ✓ | | | |
|
||||||
|
@ -2495,7 +2495,7 @@ source = { git = "https://github.com/erasin/tree-sitter-po", rev = "417cee9abb20
|
|||||||
[[language]]
|
[[language]]
|
||||||
name = "nasm"
|
name = "nasm"
|
||||||
scope = "source.nasm"
|
scope = "source.nasm"
|
||||||
file-types = ["asm", "s", "S", "nasm"]
|
file-types = ["asm", "S", "nasm"]
|
||||||
injection-regex = "n?asm"
|
injection-regex = "n?asm"
|
||||||
roots = []
|
roots = []
|
||||||
comment-token = ";"
|
comment-token = ";"
|
||||||
@ -2505,6 +2505,19 @@ indent = { tab-width = 8, unit = " " }
|
|||||||
name = "nasm"
|
name = "nasm"
|
||||||
source = { git = "https://github.com/naclsn/tree-sitter-nasm", rev = "a0db15db6fcfb1bf2cc8702500e55e558825c48b" }
|
source = { git = "https://github.com/naclsn/tree-sitter-nasm", rev = "a0db15db6fcfb1bf2cc8702500e55e558825c48b" }
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "gas"
|
||||||
|
scope = "source.gas"
|
||||||
|
file-types = ["s"]
|
||||||
|
injection-regex = "gas"
|
||||||
|
roots = []
|
||||||
|
comment-token = "#"
|
||||||
|
indent = { tab-width = 8, unit = " " }
|
||||||
|
|
||||||
|
[[grammar]]
|
||||||
|
name = "gas"
|
||||||
|
source = { git = "https://github.com/sirius94/tree-sitter-gas", rev = "60f443646b20edee3b7bf18f3a4fb91dc214259a" }
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "rst"
|
name = "rst"
|
||||||
scope = "source.rst"
|
scope = "source.rst"
|
||||||
|
21
runtime/queries/gas/highlights.scm
Normal file
21
runtime/queries/gas/highlights.scm
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
(comment) @comment
|
||||||
|
(number) @constant.numeric
|
||||||
|
(directive_name) @keyword.directive
|
||||||
|
(symbol) @variable
|
||||||
|
(label) @function
|
||||||
|
(label)
|
||||||
|
(instruction_prefix) @keyword
|
||||||
|
(instruction_name) @function.special
|
||||||
|
(register) @constant.builtin
|
||||||
|
(string) @string
|
||||||
|
(char) @constant.character
|
||||||
|
(type) @type
|
||||||
|
(constant "$" @constant)
|
||||||
|
(operand_modifier) @attribute
|
||||||
|
|
||||||
|
(expression
|
||||||
|
["-" "+" "*" "/" "="] @operator)
|
||||||
|
|
||||||
|
["(" ")"] @punctuation.bracket
|
||||||
|
|
||||||
|
["," ":"] @punctuation.delimiter
|
2
runtime/queries/gas/injections.scm
Normal file
2
runtime/queries/gas/injections.scm
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
((comment) @injection.content
|
||||||
|
(#set! injection.language "comment"))
|
2
runtime/queries/gas/textobjects.scm
Normal file
2
runtime/queries/gas/textobjects.scm
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
(comment) @comment.inside
|
||||||
|
(comment)+ @comment.around
|
Loading…
Reference in New Issue
Block a user