File tree 5 files changed +66
-0
lines changed
5 files changed +66
-0
lines changed Original file line number Diff line number Diff line change 127
127
| wat | ✓ | | | |
128
128
| wgsl | ✓ | | | ` wgsl_analyzer ` |
129
129
| xit | ✓ | | | |
130
+ | xml | ✓ | | ✓ | |
130
131
| yaml | ✓ | | ✓ | ` yaml-language-server ` |
131
132
| zig | ✓ | ✓ | ✓ | ` zls ` |
Original file line number Diff line number Diff line change @@ -1897,3 +1897,23 @@ injection-regex = "kdl"
1897
1897
[[grammar ]]
1898
1898
name = " kdl"
1899
1899
source = { git = " https://github.com/Unoqwy/tree-sitter-kdl" , rev = " e1cd292c6d15df6610484e1d4b5c987ecad52373" }
1900
+
1901
+ [[language ]]
1902
+ name = " xml"
1903
+ scope = " source.xml"
1904
+ injection-regex = " xml"
1905
+ file-types = [" xml" ]
1906
+ indent = { tab-width = 2 , unit = " " }
1907
+ roots = []
1908
+
1909
+ [language .auto-pairs ]
1910
+ '(' = ' )'
1911
+ '{' = ' }'
1912
+ '[' = ' ]'
1913
+ '"' = ' "'
1914
+ "'" = " '"
1915
+ "<" = " >"
1916
+
1917
+ [[grammar ]]
1918
+ name = " xml"
1919
+ source = { git = " https://github.com/RenjiSann/tree-sitter-xml" , rev = " 422528a43630db6dcc1e222d1c5ee3babd559473" }
Original file line number Diff line number Diff line change
1
+ (comment) @comment
2
+
3
+ [
4
+ "DOCTYPE"
5
+ "ELEMENT"
6
+ "ATTLIST"
7
+ ] @keyword
8
+
9
+ [
10
+ "#REQUIRED"
11
+ "#IMPLIED"
12
+ "#FIXED"
13
+ "#PCDATA"
14
+ ] @keyword.directive
15
+
16
+ [
17
+ "EMPTY"
18
+ "ANY"
19
+ "SYSTEM"
20
+ "PUBLIC"
21
+ ] @constant
22
+
23
+ (doctype) @variable
24
+ (element_name) @variable
25
+
26
+ "xml" @tag
27
+ (tag_name) @tag
28
+
29
+ [
30
+ "encoding"
31
+ "version"
32
+ "standalone"
33
+ ] @attribute
34
+ (attribute_name) @attribute
35
+
36
+ (system_literal) @string
37
+ (pubid_literal) @string
38
+ (attribute_value) @string
39
+
40
+ [
41
+ "<" ">" "</" "/>" "<?" "?>" "<!"
42
+ ] @punctuation.bracket
Original file line number Diff line number Diff line change
1
+ (element) @indent
Original file line number Diff line number Diff line change
1
+ ((comment) @injection.content
2
+ (#set! injection.language "comment"))
You can’t perform that action at this time.
0 commit comments