build: move the syntax files out of the doc/ directory

They are not documentation, they are functional elements of nano.
This commit is contained in:
Benno Schulenberg
2016-12-24 17:25:06 +01:00
parent 6981294c9d
commit b0ef2e2803
47 changed files with 5 additions and 5 deletions

20
syntax/javascript.nanorc Normal file
View File

@@ -0,0 +1,20 @@
## Here is an example for Javascript.
syntax "javascript" "\.js$"
comment "//"
color brightred "\<[A-Z_][0-9A-Z_]+\>"
color green "\<(const|function|let|this|typeof|var|void)\>"
color brightyellow "\<(for|if|while|with|do|else|case|default|switch)\>"
color brightyellow "\<(export|try|throw|catch|new|delete)\>"
color magenta "\<(continue|break|return|yield)\>"
color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'"
# Strings.
color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" "'(\\.|[^'])*'"
# Comments.
color brightblue "//.*"
color brightblue start="/\*" end="\*/"
# Trailing whitespace.
color ,green "[[:space:]]+$"