Skip to content
This repository was archived by the owner on Jan 17, 2026. It is now read-only.

Commit 980d4c5

Browse files
committed
Revert markdown syntax highlighting in heredoc
1 parent 912bbbd commit 980d4c5

3 files changed

Lines changed: 11 additions & 81 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## [0.0.21]
4+
5+
### Fixed
6+
7+
- Reverted markdown syntax highlighting in heredoc to maintain clearer separation between documentation and actual elixir code.
8+
39
## [0.0.20]
410

511
### Fixed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "lexical",
33
"displayName": "Lexical (Elixir Language Server)",
44
"description": "Elixir language support for Visual Studio Code",
5-
"version": "0.0.20",
5+
"version": "0.0.21",
66
"repository": "github:lexical-lsp/vscode-lexical",
77
"publisher": "lexical-lsp",
88
"icon": "assets/lexi-logo-square-128.png",

syntaxes/elixir.json

Lines changed: 4 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -23,125 +23,49 @@
2323
"begin": "@(?:module|type)?doc (?:~s)?\"\"\"",
2424
"comment": "@doc with interpolated heredocs",
2525
"end": "\\s*\"\"\"",
26-
"name": "documentation.heredoc.elixir",
27-
"beginCaptures": {
28-
"0": {
29-
"name": "comment"
30-
}
31-
},
32-
"endCaptures": {
33-
"0": {
34-
"name": "comment"
35-
}
36-
},
26+
"name": "comment.documentation.heredoc.elixir",
3727
"patterns": [
3828
{
3929
"include": "#interpolated_elixir"
4030
},
4131
{
4232
"include": "#escaped_char"
43-
},
44-
{
45-
"begin": ".*",
46-
"while": "(^|\\G)(?!\\s*\"\"\"\\s*$)",
47-
"patterns": [
48-
{
49-
"include": "text.html.markdown"
50-
}
51-
]
5233
}
5334
]
5435
},
5536
{
5637
"begin": "@(?:module|type)?doc ~s'''",
5738
"comment": "@doc with interpolated single quoted heredocs",
5839
"end": "\\s*'''",
59-
"name": "documentation.heredoc.elixir",
60-
"beginCaptures": {
61-
"0": {
62-
"name": "comment"
63-
}
64-
},
65-
"endCaptures": {
66-
"0": {
67-
"name": "comment"
68-
}
69-
},
40+
"name": "comment.documentation.heredoc.elixir",
7041
"patterns": [
7142
{
7243
"include": "#interpolated_elixir"
7344
},
7445
{
7546
"include": "#escaped_char"
76-
},
77-
{
78-
"begin": ".*",
79-
"while": "(^|\\G)(?!\\s*'''\\s*$)",
80-
"patterns": [
81-
{
82-
"include": "text.html.markdown"
83-
}
84-
]
8547
}
8648
]
8749
},
8850
{
8951
"begin": "@(?:module|type)?doc ~S\"\"\"",
9052
"comment": "@doc with heredocs is treated as documentation",
9153
"end": "\\s*\"\"\"",
92-
"name": "documentation.heredoc.elixir",
93-
"beginCaptures": {
94-
"0": {
95-
"name": "comment"
96-
}
97-
},
98-
"endCaptures": {
99-
"0": {
100-
"name": "comment"
101-
}
102-
},
54+
"name": "comment.documentation.heredoc.elixir",
10355
"patterns": [
10456
{
10557
"include": "#escaped_char"
106-
},
107-
{
108-
"begin": ".*",
109-
"while": "(^|\\G)(?!\\s*\"\"\"\\s*$)",
110-
"patterns": [
111-
{
112-
"include": "text.html.markdown"
113-
}
114-
]
11558
}
11659
]
11760
},
11861
{
11962
"begin": "@(?:module|type)?doc ~S'''",
12063
"comment": "@doc with heredocs is treated as documentation",
12164
"end": "\\s*'''",
122-
"name": "documentation.heredoc.elixir",
123-
"beginCaptures": {
124-
"0": {
125-
"name": "comment"
126-
}
127-
},
128-
"endCaptures": {
129-
"0": {
130-
"name": "comment"
131-
}
132-
},
65+
"name": "comment.documentation.heredoc.elixir",
13366
"patterns": [
13467
{
13568
"include": "#escaped_char"
136-
},
137-
{
138-
"begin": ".*",
139-
"while": "(^|\\G)(?!\\s*'''\\s*$)",
140-
"patterns": [
141-
{
142-
"include": "text.html.markdown"
143-
}
144-
]
14569
}
14670
]
14771
},

0 commit comments

Comments
 (0)