mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 07:20:06 -04:00
parsers: Add FHIR Shorthand (FSH) (#4052)
This commit is contained in:
parent
052069ffab
commit
622baacdc1
4 changed files with 104 additions and 0 deletions
|
|
@ -208,6 +208,7 @@ We are looking for maintainers to add more parsers and to write query files for
|
||||||
- [x] [fish](https://github.com/ram02z/tree-sitter-fish) (maintained by @ram02z)
|
- [x] [fish](https://github.com/ram02z/tree-sitter-fish) (maintained by @ram02z)
|
||||||
- [x] [foam](https://github.com/FoamScience/tree-sitter-foam) (experimental, maintained by @FoamScience)
|
- [x] [foam](https://github.com/FoamScience/tree-sitter-foam) (experimental, maintained by @FoamScience)
|
||||||
- [ ] [fortran](https://github.com/stadelmanma/tree-sitter-fortran)
|
- [ ] [fortran](https://github.com/stadelmanma/tree-sitter-fortran)
|
||||||
|
- [x] [fsh](https://github.com/mgramigna/tree-sitter-fsh) (maintained by @mgramigna)
|
||||||
- [x] [fusion](https://gitlab.com/jirgn/tree-sitter-fusion.git) (maintained by @jirgn)
|
- [x] [fusion](https://gitlab.com/jirgn/tree-sitter-fusion.git) (maintained by @jirgn)
|
||||||
- [x] [Godot (gdscript)](https://github.com/PrestonKnopp/tree-sitter-gdscript) (maintained by @Shatur)
|
- [x] [Godot (gdscript)](https://github.com/PrestonKnopp/tree-sitter-gdscript) (maintained by @Shatur)
|
||||||
- [x] [git_rebase](https://github.com/the-mikedavis/tree-sitter-git-rebase) (maintained by @gbprod)
|
- [x] [git_rebase](https://github.com/the-mikedavis/tree-sitter-git-rebase) (maintained by @gbprod)
|
||||||
|
|
|
||||||
|
|
@ -107,6 +107,9 @@
|
||||||
"fortran": {
|
"fortran": {
|
||||||
"revision": "edcb3374f4698aaedf24bc572f6b2f5ef0e89ac7"
|
"revision": "edcb3374f4698aaedf24bc572f6b2f5ef0e89ac7"
|
||||||
},
|
},
|
||||||
|
"fsh": {
|
||||||
|
"revision": "f5b0489d44e588b0d5d77f5c5f50a20491c44441"
|
||||||
|
},
|
||||||
"fusion": {
|
"fusion": {
|
||||||
"revision": "19db2f47ba4c3a0f6238d4ae0e2abfca16e61dd6"
|
"revision": "19db2f47ba4c3a0f6238d4ae0e2abfca16e61dd6"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -242,6 +242,15 @@ list.rust = {
|
||||||
maintainers = { "@vigoux" },
|
maintainers = { "@vigoux" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.fsh = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/mgramigna/tree-sitter-fsh",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
branch = "main",
|
||||||
|
},
|
||||||
|
maintainers = { "@mgramigna" },
|
||||||
|
}
|
||||||
|
|
||||||
list.fusion = {
|
list.fusion = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://gitlab.com/jirgn/tree-sitter-fusion.git",
|
url = "https://gitlab.com/jirgn/tree-sitter-fusion.git",
|
||||||
|
|
|
||||||
91
queries/fsh/highlights.scm
Normal file
91
queries/fsh/highlights.scm
Normal file
|
|
@ -0,0 +1,91 @@
|
||||||
|
[
|
||||||
|
"("
|
||||||
|
")"
|
||||||
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
[
|
||||||
|
"^"
|
||||||
|
"="
|
||||||
|
":"
|
||||||
|
] @operator
|
||||||
|
|
||||||
|
[
|
||||||
|
"#"
|
||||||
|
".."
|
||||||
|
"*"
|
||||||
|
"->"
|
||||||
|
] @punctuation.special
|
||||||
|
|
||||||
|
; Entities
|
||||||
|
[
|
||||||
|
"Profile"
|
||||||
|
"Alias"
|
||||||
|
"Extension"
|
||||||
|
"Invariant"
|
||||||
|
"Instance"
|
||||||
|
"ValueSet"
|
||||||
|
"CodeSystem"
|
||||||
|
"Mapping"
|
||||||
|
"Logical"
|
||||||
|
"Resource"
|
||||||
|
"RuleSet"
|
||||||
|
] @keyword
|
||||||
|
|
||||||
|
; Metadata Keywords
|
||||||
|
[
|
||||||
|
"Parent"
|
||||||
|
"Title"
|
||||||
|
"Description"
|
||||||
|
"Id"
|
||||||
|
"Severity"
|
||||||
|
"InstanceOf"
|
||||||
|
"Usage"
|
||||||
|
"Source"
|
||||||
|
"XPath"
|
||||||
|
"Target"
|
||||||
|
] @keyword
|
||||||
|
|
||||||
|
; Rule Keywords
|
||||||
|
[
|
||||||
|
"contentReference"
|
||||||
|
"insert"
|
||||||
|
"and"
|
||||||
|
"or"
|
||||||
|
"contains"
|
||||||
|
"named"
|
||||||
|
"only"
|
||||||
|
"obeys"
|
||||||
|
"valueset"
|
||||||
|
"codes"
|
||||||
|
"from"
|
||||||
|
"include"
|
||||||
|
"exclude"
|
||||||
|
"where"
|
||||||
|
"system"
|
||||||
|
"exactly"
|
||||||
|
] @keyword.operator
|
||||||
|
|
||||||
|
; Types
|
||||||
|
[
|
||||||
|
"Reference"
|
||||||
|
"Canonical"
|
||||||
|
] @type.builtin
|
||||||
|
|
||||||
|
|
||||||
|
(sd_metadata (parent (name))) @type
|
||||||
|
(target_type (name)) @type
|
||||||
|
|
||||||
|
; Strings
|
||||||
|
(string) @string @spell
|
||||||
|
(multiline_string) @string @spell
|
||||||
|
|
||||||
|
; Constants
|
||||||
|
(strength_value) @constant
|
||||||
|
(bool) @constant.boolean
|
||||||
|
(flag) @constant
|
||||||
|
|
||||||
|
; Special Params
|
||||||
|
(code_value) @parameter
|
||||||
|
|
||||||
|
; Extras
|
||||||
|
(fsh_comment) @comment @spell
|
||||||
Loading…
Add table
Add a link
Reference in a new issue