Skip to content

Commit b2a9ffb

Browse files
committed
Merge pull request #26 from JordanFaust/master
2 parents 8a531ff + d565814 commit b2a9ffb

File tree

4 files changed

+41
-0
lines changed

4 files changed

+41
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,6 @@
156156
url = https://github.com/rolandwalker/tree-sitter-pgn.git
157157
ignore = dirty
158158
branch = master
159+
[submodule "repos/hcl"]
160+
path = repos/hcl
161+
url = https://github.com/mitchellh/tree-sitter-hcl.git

queries/hcl/highlights.scm

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[
2+
"for"
3+
] @keyword
4+
5+
(attribute (identifier) @property)
6+
(object_elem (identifier) @property)
7+
8+
(block (identifier) @type)
9+
(one_line_block (identifier) @type)
10+
11+
(function_call (identifier) @function)
12+
13+
[
14+
(string_literal)
15+
(quoted_template)
16+
(heredoc)
17+
] @string
18+
19+
(numeric_literal) @number
20+
21+
[
22+
(true)
23+
(false)
24+
(null)
25+
] @constant.builtin
26+
27+
(comment) @comment
28+
29+
[
30+
"("
31+
")"
32+
"["
33+
"]"
34+
"{"
35+
"}"
36+
] @punctuation.bracket

repos/hcl

Submodule hcl added at a8bd256

tree-sitter-langs.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ See `tree-sitter-langs-repos'."
9898
(css-mode . css)
9999
(elm-mode . elm)
100100
(go-mode . go)
101+
(hcl-mode . hcl)
101102
(html-mode . html)
102103
(mhtml-mode . html)
103104
(java-mode . java)

0 commit comments

Comments
 (0)