Add comments for Mac OSX users

This commit is contained in:
semitrivial 2015-05-28 23:09:03 +01:00
parent 57f37d5428
commit 1718e6b414
4 changed files with 20 additions and 10 deletions

View File

@ -1,5 +1,10 @@
## Here is an example for C/C++. ## Here is an example for C/C++.
## ##
## Mac OSX users: If you use Mac OSX, it might be necessary to perform the following:
## 1. Replace \< by [[:<:]]
## 2. Replace \> by [[:>:]]
syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$" syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$"
color brightred "\<[A-Z_][0-9A-Z_]+\>" color brightred "\<[A-Z_][0-9A-Z_]+\>"
color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"

View File

@ -1,5 +1,10 @@
## Here is an example for Java. ## Here is an example for Java.
## ##
## Mac OSX users: If you use Mac OSX, it might be necessary to perform the following:
## 1. Replace \< by [[:<:]]
## 2. Replace \> by [[:>:]]
syntax "java" "\.java$" syntax "java" "\.java$"
color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>" color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>"
color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>" color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>"

View File

@ -1,17 +1,12 @@
### all *js files ( e.g. Firefox user.js, prefs.js ) ### all *js files ( e.g. Firefox user.js, prefs.js )
## Old version
#syntax "jsfiles" "(\.|/|)js$"
#color green "//.*$" start="\/\*" end="\*\/"
#color blue "'(\\.|[^'])*'"
#color red ""(\\.|[^\"])*""
#color brightgreen "\<(true)\>"
#color brightred "\<(false)\>" "http\:\/\/.*$"
#color brightmagenta "[0-9](\\.|[^\"])*)"
## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting ## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting
## Mac OSX users: If you use Mac OSX, it might be necessary to perform the following:
## 1. Replace \< by [[:<:]]
## 2. Replace \> by [[:>:]]
## 3. Replace \' by \\'
syntax "JavaScript" "\.(js)$" syntax "JavaScript" "\.(js)$"
## Default ## Default

View File

@ -1,6 +1,11 @@
syntax "json" "\.json$" syntax "json" "\.json$"
header "^\{$" header "^\{$"
## Mac OSX users: If you use Mac OSX, it might be necessary to perform the following:
## 1. Replace \< by [[:<:]]
## 2. Replace \> by [[:>:]]
## 3. Replace \' by \\'
color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>" color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>"
color cyan "\<null\>" color cyan "\<null\>"
color brightcyan "\<(true|false)\>" color brightcyan "\<(true|false)\>"