summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTING.md7
-rw-r--r--queries/json/highlights.scm2
2 files changed, 9 insertions, 0 deletions
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 91134013..ea0b3c08 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -150,6 +150,8 @@ effect on highlighting. We will work on improving highlighting in the near futur
@attribute for e.g. Python decorators
```
+@conceal followed by `(#set! conceal "")` for captures that are not used for highlights but only for concealing.
+
#### Variables
```
@@ -190,6 +192,10 @@ Used for xml-like tags
@tag.delimiter
```
+#### Conceal
+
+@conceal followed by `(#set! conceal "")` for captures that are not used for highlights but only for concealing.
+
### Locals
```
@@ -214,6 +220,7 @@ Used for xml-like tags
@constructor
```
+
#### Definition Scope
You can set the scope of a definition by setting the `scope` property on the definition.
diff --git a/queries/json/highlights.scm b/queries/json/highlights.scm
index 9bf4279e..89de9047 100644
--- a/queries/json/highlights.scm
+++ b/queries/json/highlights.scm
@@ -12,3 +12,5 @@
"]" @punctuation.bracket
"{" @punctuation.bracket
"}" @punctuation.bracket
+
+(("\"" @conceal) (#set! conceal ""))