Commit ab62d288 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

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.
parent 8e0a7ec2
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment