Skip to content

Commit b18cf7c

Browse files
committed
Add comment highlighting to interpreter directives
1 parent b028a90 commit b18cf7c

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ This project adheres to [Semantic Versioning](http://semver.org).
66
[Unpublished]: ../../compare/v1.4.0...HEAD
77

88

9+
[Unpublished]
10+
------------------------------------------------------------------------
11+
* __Added:__ Comment highlighting for interpreter directives (hashbangs)
12+
13+
14+
915
[v1.4.0]
1016
------------------------------------------------------------------------
1117
**October 17th, 2019**

grammars/emacs-lisp.cson

+8-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,14 @@ firstLineMatch: """(?x)
3333
(?=\\s|:|$)
3434
)
3535
"""
36-
patterns: [include: "#main"]
36+
patterns: [{
37+
# Interpreter directive
38+
name: "comment.line.hashbang.emacs.lisp"
39+
begin: "\\A(#!)"
40+
end: "$"
41+
beginCaptures:
42+
1: name: "punctuation.definition.comment.hashbang.emacs.lisp"
43+
}, include: "#main"]
3744

3845

3946
repository:

0 commit comments

Comments
 (0)