File tree Expand file tree Collapse file tree 5 files changed +7
-2
lines changed Expand file tree Collapse file tree 5 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 4
4
5
5
syntax "batch" " \. (bat| cmd)$ "
6
6
header " ^ @[eE ](cho| CHO) (on| off| ON| OFF)"
7
- comment " :: "
7
+ comment " REM "
8
8
9
9
# Native commands, symbols, and comparisons.
10
10
icolor green " \< (ASSOC| CALL| CD| CLS| CMDEXTVERSION| COLOR| COPY| DATE| DEL| DIR| ECHO| ENDLOCAL| ERASE| ERRORLEVEL| EXIT| FOR| FTYPE| GOTO| IF| MD| MKLINK| MOVE| PATH| PAUSE| POPD| PROMPT| PUSHD| RD| REM| REN| SET| SETLOCAL| SHIFT| START| TIME| TITLE| TYPE| VER| VERIFY| VOL)\> "
Original file line number Diff line number Diff line change 2
2
# #
3
3
syntax "C" " \. (c(c| pp| xx)? | C)$ " " \. (h(h| pp| xx)? | H)$ " " \. ii? $ " " \. (def)$ " " \. ino$ "
4
4
magic " ^ (C| C\+\+ ) (source| program)"
5
+ linter " g++ -fshow-column -Wall"
5
6
comment " //"
7
+
6
8
color brightred " \< [A -Z_ ][0 -9A -Z_ ]+ \> "
7
9
color green " \< (float| double| bool| char| wchar_t| int| short| long| sizeof| enum| void| static| const| struct| union| typedef| extern| (un)? signed| inline)\> "
8
10
color green " \< ((s? size)| (char(16| 32))| ((u_? )? int(_fast| _least)? (8| 16| 32| 64))| u? int(max| ptr))_t\> "
Original file line number Diff line number Diff line change 14
14
syntax "JavaScript" " \. (m? js| ts| javascript| typescript)$ "
15
15
header " ^ #!. * \/ (env + )node"
16
16
comment " //"
17
+ linter " npx eslint"
17
18
18
19
# # Default
19
20
color white " ^ . + $ "
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ icolor green "\<(string|char|byte|int|long|bool|decimal|single|double|DateTime|x
26
26
27
27
# # Comments
28
28
color cyan start =" <#" end =" #>"
29
+ # Rule out end-of-block-comment (galenguyer/nano-syntax-highlighting/issues/5)
29
30
color cyan " (^ | [[:space :] ])#[^ > ]([^ # ]| #[^ > ])* $ "
30
31
color brightwhite ,yellow " \< (FIXME| TODO| XXX)\> "
31
32
Original file line number Diff line number Diff line change 1
1
# # Here is an example for Bourne shell scripts.
2
2
# #
3
- syntax "SH" " \. sh$ " " \. ash$ " " \. bashrc$ " " bashrc$ " " \. bash_aliases$ " " bash_aliases$ " " \. bash_functions$ " " bash_functions$ " " \. bash_login$ " " \. bash_logout$ " " \. bash_profile$ " " bash_profile$ " " \. profile$ " " revise\. . + $ "
3
+ syntax "SH" " \. sh$ " " \. ash$ " " \. bashrc$ " " bashrc$ " " \. bash_aliases$ " " bash_aliases$ " " \. bash_functions$ " " bash_functions$ " " \. bash_login$ " " \. bash_logout$ " " \. bash_profile$ " " bash_profile$ " " \. profile$ " " revise\. . + $ " " ^ PKGBUILD $ "
4
4
header " ^ #!. * /(env + )? (ba| da| a)? sh( | $ )"
5
5
magic " (POSIX| Bourne-Again) shell script. * text"
6
6
comment " #"
7
7
8
8
linter dash -n
9
+ # linter shellcheck --format=gcc
9
10
10
11
# # keywords:
11
12
color green " \< (case| do| done| elif| else| esac| fi| for| function| if| in| select| then| time| until| while)\> "
You can’t perform that action at this time.
0 commit comments