Merge pull request #274 from DanteFalzone0/master

Added support for documentation comments to java.nanorc and c.nanorc
This commit is contained in:
Anthony Scopatz 2020-01-25 16:16:44 -05:00 committed by GitHub
commit d7b7d3c52e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View File

@ -40,5 +40,10 @@ color cyan "<[^= ]*>" ""(\\.|[^"])*""
color brightblue "^\s*//.*" color brightblue "^\s*//.*"
color brightblue start="/\*" end="\*/" color brightblue start="/\*" end="\*/"
# Highlighting for documentation comments
color magenta "@param [a-zA-Z_][a-z0-9A-Z_]+"
color magenta "@return"
color magenta "@author.*"
## Trailing whitespace ## Trailing whitespace
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"

View File

@ -13,4 +13,10 @@ icolor yellow "\b(([1-9][0-9]+)|0+)\.[0-9]+\b" "\b[1-9][0-9]*\b" "\b0[0-7]*\b" "
color blue "^\s*//.*" color blue "^\s*//.*"
color blue start="/\*" end="\*/" color blue start="/\*" end="\*/"
color brightblue start="/\*\*" end="\*/" color brightblue start="/\*\*" end="\*/"
# Highlighting for javadoc stuff
color magenta "@param [a-zA-Z_][a-z0-9A-Z_]+"
color magenta "@return"
color magenta "@author.*"
color ,green "[[:space:]]+$" color ,green "[[:space:]]+$"