summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Vigouroux <39092278+vigoux@users.noreply.github.com>2020-06-02 21:15:48 +0200
committerGitHub <noreply@github.com>2020-06-02 21:15:48 +0200
commitc934ea694cbd8a96fae23aad4406819797e9df45 (patch)
tree27c1743ec6bace948f8e4c731d8694c25519d208
parent8763a3163fecb94d71868d9160aa931439cbd636 (diff)
parentd32d5abb4abb7e22b91f105c3883f233e802cc20 (diff)
Merge pull request #68 from TravonteD/html
Add html highlight queries
-rw-r--r--README.md2
-rw-r--r--queries/html/highlights.scm14
2 files changed, 15 insertions, 1 deletions
diff --git a/README.md b/README.md
index 735c9e8f..a7cd56a0 100644
--- a/README.md
+++ b/README.md
@@ -163,7 +163,7 @@ List of currently supported languages:
- [ ] typescript
- [ ] tsx
- [ ] json
-- [ ] html
+- [x] html (maintained by @TravonteD)
- [ ] csharp
- [ ] swift
- [ ] java
diff --git a/queries/html/highlights.scm b/queries/html/highlights.scm
new file mode 100644
index 00000000..8caa0a73
--- /dev/null
+++ b/queries/html/highlights.scm
@@ -0,0 +1,14 @@
+(tag_name) @type
+(erroneous_end_tag_name) @error
+(doctype) @constant
+(attribute_name) @property
+(attribute_value) @string
+(comment) @comment
+
+"=" @operator
+
+"<" @punctuation.bracket
+">" @punctuation.bracket
+"</" @punctuation.bracket
+"/>" @punctuation.bracket
+