mirror of
git://git.sv.gnu.org/nano.git
synced 2025-03-26 03:13:32 +03:00
syntax: javascript: require that a comment is preceded by whitespace
Either by whitespace or by the start of a line. This avoids treating part of a URL as a comment.
This commit is contained in:
parent
8e0a7ec20d
commit
ab62d28817
@ -13,7 +13,7 @@ color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\
|
||||
# Strings.
|
||||
color brightyellow "<[^= ]*>" ""(\\.|[^"])*"" "'(\\.|[^'])*'" "`(\\.|[^`])*`"
|
||||
# Comments.
|
||||
color brightblue "//.*"
|
||||
color brightblue "(^|[[:space:]])//.*"
|
||||
color brightblue start="/\*" end="\*/"
|
||||
|
||||
# Trailing whitespace.
|
||||
|
Loading…
x
Reference in New Issue
Block a user