Skip to content

Commit 256995b

Browse files
authored
Merge pull request #56 from davidhcefx/misc-enhance
Miscellaneous enhancements
2 parents 6658b83 + f325332 commit 256995b

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

batch.nanorc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
syntax "batch" "\.(bat|cmd)$"
66
header "^@[eE](cho|CHO) (on|off|ON|OFF)"
7-
comment "::"
7+
comment "REM "
88

99
# Native commands, symbols, and comparisons.
1010
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)\>"

c.nanorc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
##
33
syntax "C" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" "\.ino$"
44
magic "^(C|C\+\+) (source|program)"
5+
linter "g++ -fshow-column -Wall"
56
comment "//"
7+
68
color brightred "\<[A-Z_][0-9A-Z_]+\>"
79
color green "\<(float|double|bool|char|wchar_t|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
810
color green "\<((s?size)|(char(16|32))|((u_?)?int(_fast|_least)?(8|16|32|64))|u?int(max|ptr))_t\>"

js.nanorc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
syntax "JavaScript" "\.(m?js|ts|javascript|typescript)$"
1515
header "^#!.*\/(env +)node"
1616
comment "//"
17+
linter "npx eslint"
1718

1819
## Default
1920
color white "^.+$"

powershell.nanorc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ icolor green "\<(string|char|byte|int|long|bool|decimal|single|double|DateTime|x
2626

2727
## Comments
2828
color cyan start="<#" end="#>"
29+
# Rule out end-of-block-comment (galenguyer/nano-syntax-highlighting/issues/5)
2930
color cyan "(^|[[:space:]])#[^>]([^#]|#[^>])*$"
3031
color brightwhite,yellow "\<(FIXME|TODO|XXX)\>"
3132

sh.nanorc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
## Here is an example for Bourne shell scripts.
22
##
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$"
44
header "^#!.*/(env +)?(ba|da|a)?sh( |$)"
55
magic "(POSIX|Bourne-Again) shell script.*text"
66
comment "#"
77

88
linter dash -n
9+
#linter shellcheck --format=gcc
910

1011
## keywords:
1112
color green "\<(case|do|done|elif|else|esac|fi|for|function|if|in|select|then|time|until|while)\>"

0 commit comments

Comments
 (0)