Skip to content

Commit 2e8e769

Browse files
authored
Alex and Happy highlighting (#188)
Add Alex and Happy grammars Co-authored-by: mat ess <[email protected]>
1 parent c9ee1b3 commit 2e8e769

File tree

17 files changed

+4731
-120
lines changed

17 files changed

+4731
-120
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
out
2+
*.vsix
23
node_modules
34
syntaxes/haskell.json
45
npm-debug.log
56
syntaxes/cabal.json
67
syntaxes/literateHaskell.json
8+
syntaxes/alex.json
9+
syntaxes/happy.json
10+
test/*/*.snap

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## x.x.x - Unreleased
22

3+
- Add support for Alex and Happy
4+
5+
## 3.4.0 - 25.02.2021
6+
37
- Fix lists of the form ['|'...] being highlighted as quasiquotations
48
([#170](https://github.com/JustusAdam/language-haskell/issues/170)).
59
- Proper highlighting of lambda case, including fixing the highlighting of subsequent braces (which were wrongly highlighted as record syntax).

Makefile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
CONVERT=npx js-yaml
2-
SYNTAXES=haskell cabal literateHaskell
2+
VSCE=npx vsce
3+
SYNTAXES=haskell cabal literateHaskell alex happy
34
JSON_TARGETS=$(addsuffix .json,$(addprefix syntaxes/,$(SYNTAXES)))
45
SCOPE_LISTS=$(addsuffix .md,$(addprefix scope-lists/,$(SYNTAXES)))
56

6-
.PHONY: all test publish
7+
.PHONY: all test publish package
78

89
all: $(JSON_TARGETS) $(SCOPE_LISTS)
910

@@ -19,8 +20,8 @@ test: all
1920
%.json: %.YAML-tmLanguage
2021
$(CONVERT) $< > $@
2122

22-
$(CONVERT):
23-
npm install js-yaml
24-
2523
publish: all
26-
vsce publish
24+
$(VSCE) publish
25+
26+
package: all
27+
$(VSCE) package

0 commit comments

Comments
 (0)