summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2022-03-21 13:36:36 +0100
committerChristian Clason <christian.clason@uni-due.de>2022-03-26 18:36:49 +0100
commitcd4d80217521ae7132378e9c0bb1f78b9d2ebc9a (patch)
tree9fc1a55a8b1f8c985494da4269f2cd2990d437e8
parent739fefa8fa0c024a89b961bef14822f87fc13692 (diff)
highlights: conceal `"` in JSON
Fixes #645
-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 ""))