Skip to content

Commit cd7151f

Browse files
authored
Merge pull request #23 from davidhcefx/elixirfix
fix(elixir): string interpolation highlighted as comment
2 parents a1e6af5 + 3fcd1db commit cd7151f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

elixir.nanorc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ color brightmagenta "~[a-z]\/([^\/])*\/[a-z]*" "~[a-z]\|([^\|])*\|[a-z]*" "~[a-z
2929
## Strings, double-quoted
3030
color green ""([^"]|(\\"))*""
3131

32-
## Expression substitution. These go inside double-quoted strings,
33-
## "like #{this}".
34-
color brightgreen "#\{[^}]*\}"
35-
3632
## Strings, single-quoted
3733
color green "'([^']|(\\'))*'"
3834

35+
## Expression substitution. These go inside double-quoted strings,
36+
## "like #{this}".
37+
color normal "#\{[^}]*\}"
38+
3939
## Comments
40-
color cyan "#.*$" "#$"
41-
color brightcyan "##.*$" "##$"
40+
color cyan "(^|[[:space:]])#([^{].*|)$"
41+
color brightcyan "(^|[[:space:]])##.*$"
4242

4343
## "Here" docs
4444
color green start="\"\"\"" end="\"\"\""

0 commit comments

Comments
 (0)