Skip to content

Commit 65c3609

Browse files
authored
Merge pull request #35 from davidhcefx/comment-end
fix: comment highlighting should be placed last
2 parents 04c0cb1 + c668e6a commit 65c3609

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

Dockerfile.nanorc

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,6 @@ color brightgreen "(\(|\)|\[|\])"
1010
## Double ampersand
1111
color brightmagenta "&&"
1212

13-
## Comments
14-
icolor cyan "^[[:space:]]*#.*$"
15-
16-
## Reminders
17-
color brightwhite,yellow "\<(FIXME|TODO|XXX)\>"
18-
19-
## Blank space at EOL
20-
color ,green "[[:space:]]+$"
21-
2213
## Strings, single-quoted
2314
color brightwhite "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
2415

@@ -27,3 +18,12 @@ color brightwhite ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<
2718

2819
## Single and double quotes
2920
color brightyellow "('|\")"
21+
22+
## Comments
23+
icolor cyan "^[[:space:]]*#.*$"
24+
25+
## Reminders
26+
color brightwhite,yellow "\<(FIXME|TODO|XXX)\>"
27+
28+
## Blank space at EOL
29+
color ,green "[[:space:]]+$"

batch.nanorc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ color brightred "!([[:alnum:]`~@#$%*(){}:',.?+=_-]|\[|\])([[:alnum:]`~@#$%*(){}:
2424
# Parameter names for arguments and loop.
2525
color brightred "%(~[[:alpha:]$]*)?[0-9*]\>" "%%(~[[:alpha:]$]*)?[[:alpha:]]\>"
2626

27+
# Strings.
28+
icolor brightyellow ""(\^.|[^"])*""
29+
2730
# Comments.
2831
icolor cyan "^[[:space:]]*(\<rem\>|::).*"
2932
color brightwhite,yellow "\<(FIXME|TODO|XXX)\>"
3033

31-
# Strings.
32-
icolor brightyellow ""(\^.|[^"])*""
33-
3434
# Trailling whitespace
3535
color ,green "[[:space:]]+$"

groff.nanorc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ color cyan start="(\\|\\\\)n\[" end="]"
1515
## Requests
1616
color brightgreen "^\.[[:space:]]*[^[[:space:]]]*[^[[:space:]]]*"
1717
color brightgreen "^\.[[:space:]]*[^[[:space:]]]*"
18-
## Comments
19-
color yellow "^\.\\".*$"
20-
color brightwhite,yellow "\<(FIXME|TODO|XXX)\>"
2118
## Strings
2219
color green "(\\|\\\\)\*(.|\(..)"
2320
color green start="(\\|\\\\)\*\[" end="]"
@@ -26,3 +23,6 @@ color brightred "\\\(.."
2623
color brightred start="\\\[" end="]"
2724
## Macro arguments
2825
color brightcyan "\\\\\$[1-9]"
26+
## Comments
27+
color yellow "^\.\\".*$"
28+
color brightwhite,yellow "\<(FIXME|TODO|XXX)\>"

0 commit comments

Comments
 (0)