diff options
Diffstat (limited to 'tests/examplefiles/js/evil_regex.js.output')
-rw-r--r-- | tests/examplefiles/js/evil_regex.js.output | 252 |
1 files changed, 126 insertions, 126 deletions
diff --git a/tests/examplefiles/js/evil_regex.js.output b/tests/examplefiles/js/evil_regex.js.output index 81c9f9dc..6590b08e 100644 --- a/tests/examplefiles/js/evil_regex.js.output +++ b/tests/examplefiles/js/evil_regex.js.output @@ -5,33 +5,35 @@ '(' Punctuation 'foo' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace '||' Operator -' ' Text +' ' Text.Whitespace 'x' Name.Other -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '[' Punctuation '/regexp/' Literal.String.Regex ',' Punctuation '/regexp/' Literal.String.Regex ',' Punctuation -' ' Text +' ' Text.Whitespace '/regexp/' Literal.String.Regex ',' Punctuation -' ' Text -'// comment\n' Comment.Single +' ' Text.Whitespace +'// comment' Comment.Single +'\n' Text.Whitespace -'// comment\n' Comment.Single +'// comment' Comment.Single +'\n' Text.Whitespace '/regexp/' Literal.String.Regex ']' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation '/regexp/' Literal.String.Regex '.' Punctuation @@ -40,7 +42,7 @@ 'string' Name.Other ')' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace '{' Punctuation '/regexp/' Literal.String.Regex @@ -52,25 +54,25 @@ ';' Punctuation '}' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'x' Name.Other -' ' Text +' ' Text.Whitespace '=' Operator '/regexp/' Literal.String.Regex ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'x' Name.Other -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '/regexp/' Literal.String.Regex ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation '0' Literal.Number.Float '<' Operator @@ -80,9 +82,9 @@ '(' Punctuation 'string' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace '||' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Float '>' Operator '/regexp/' Literal.String.Regex @@ -92,27 +94,27 @@ 'string' Name.Other ')' Punctuation ')' Punctuation -'\n' Text +'\n' Text.Whitespace 'x' Name.Other -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '{' Punctuation -' ' Text +' ' Text.Whitespace 'u' Name.Other ':' Operator '/regexp/' Literal.String.Regex ',' Punctuation -' ' Text +' ' Text.Whitespace 'v' Name.Other ':' Operator -' ' Text +' ' Text.Whitespace '/regexp/' Literal.String.Regex -' ' Text +' ' Text.Whitespace '}' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'foo' Name.Other '(' Punctuation @@ -125,7 +127,7 @@ 'string' Name.Other ')' Punctuation ';' Punctuation -' ' Text +' ' Text.Whitespace '/regexp/' Literal.String.Regex '.' Punctuation 'test' Name.Other @@ -133,27 +135,27 @@ 'string' Name.Other ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'if' Keyword -' ' Text +' ' Text.Whitespace '(' Punctuation '!' Operator '/regexp/' Literal.String.Regex ')' Punctuation -' ' Text +' ' Text.Whitespace 'foobar' Name.Other '(' Punctuation ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'x' Name.Other -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'u' Name.Other -' ' Text +' ' Text.Whitespace '%' Operator '/regexp/' Literal.String.Regex '.' Punctuation @@ -161,7 +163,7 @@ '(' Punctuation 'string' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace '*' Operator '/regexp/' Literal.String.Regex '.' Punctuation @@ -169,9 +171,9 @@ '(' Punctuation 'string' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace '/' Operator -' ' Text +' ' Text.Whitespace '/regexp/' Literal.String.Regex '.' Punctuation 'exec' Name.Other @@ -179,12 +181,12 @@ 'string' Name.Other ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'x' Name.Other -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'u' Name.Other '?' Operator '/regexp/' Literal.String.Regex @@ -193,11 +195,11 @@ '(' Punctuation 'string' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace ':' Operator -' ' Text +' ' Text.Whitespace 'v' Name.Other -' ' Text +' ' Text.Whitespace '+' Operator '/regexp/' Literal.String.Regex '.' Punctuation @@ -205,7 +207,7 @@ '(' Punctuation 'string' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace '-' Operator '/regexp/' Literal.String.Regex '.' Punctuation @@ -214,12 +216,12 @@ 'string' Name.Other ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'a' Name.Other -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace 'u' Name.Other '^' Operator '/regexp/' Literal.String.Regex @@ -228,7 +230,7 @@ '(' Punctuation 'string' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace '&' Operator '/regexp/' Literal.String.Regex '.' Punctuation @@ -236,7 +238,7 @@ '(' Punctuation 'string' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace '|' Operator '/regexp/' Literal.String.Regex '.' Punctuation @@ -244,7 +246,7 @@ '(' Punctuation 'string' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace '+' Operator '~' Operator '/regexp/' Literal.String.Regex @@ -254,114 +256,112 @@ 'string' Name.Other ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'x' Name.Other -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '/regexp/' Literal.String.Regex -' ' Text +' ' Text.Whitespace '/* a comment */' Comment.Multiline -' ' Text +' ' Text.Whitespace ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'x' Name.Other -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '/[reg/exp]/' Literal.String.Regex ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'x' Name.Other -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '4' Literal.Number.Float '/' Operator '2' Literal.Number.Float '/' Operator 'i' Name.Other ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'x' Name.Other -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '(' Punctuation 'a' Name.Other -' ' Text +' ' Text.Whitespace '==' Operator -' ' Text +' ' Text.Whitespace 'b' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace '?' Operator '/* this is a comment */' Comment.Multiline -' ' Text +' ' Text.Whitespace 'c' Name.Other -' ' Text +' ' Text.Whitespace ':' Operator -' ' Text +' ' Text.Whitespace 'd' Name.Other ';' Punctuation -'\n' Text +'\n' Text.Whitespace -'/// a comment //\n' Comment.Single +'/// a comment //' Comment.Single +'\n' Text.Whitespace 'a' Name.Other -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '/regex/' Literal.String.Regex '/' Operator '2' Literal.Number.Float '/' Operator '1' Literal.Number.Float ';' Punctuation -' ' Text -'//syntactically correct, returns NaN\n' Comment.Single - -'\n\n\n\n' Text +' ' Text.Whitespace +'//syntactically correct, returns NaN' Comment.Single +'\n\n\n\n\n' Text.Whitespace '/* original examples */' Comment.Multiline -'\n\n' Text - -'// regex\n' Comment.Single +'\n\n' Text.Whitespace -'\n' Text +'// regex' Comment.Single +'\n\n' Text.Whitespace 'blah' Name.Other '(' Punctuation '/abc/' Literal.String.Regex ')' Punctuation ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'x' Name.Other -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '/abc/' Literal.String.Regex ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'x' Name.Other -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '/abc/' Literal.String.Regex '.' Punctuation 'match' Name.Other ';' Punctuation -'\n\n' Text - -'// math\n' Comment.Single +'\n\n' Text.Whitespace -'\n' Text +'// math' Comment.Single +'\n\n' Text.Whitespace 'blah' Name.Other '(' Punctuation @@ -370,46 +370,46 @@ '2' Literal.Number.Float ')' Punctuation ';' Punctuation -' ' Text -'//comment\n' Comment.Single +' ' Text.Whitespace +'//comment' Comment.Single +'\n' Text.Whitespace 'x' Name.Other -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Float -' ' Text +' ' Text.Whitespace '/' Operator -' ' Text +' ' Text.Whitespace '2' Literal.Number.Float -' ' Text +' ' Text.Whitespace '/' Operator -' ' Text +' ' Text.Whitespace '3' Literal.Number.Float ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'x' Name.Other -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Float '/' Operator '1' Literal.Number.Float '/' Operator '.1' Literal.Number.Float ';' Punctuation -'\n\n' Text +'\n\n' Text.Whitespace -'// broken\n' Comment.Single - -'\n' Text +'// broken' Comment.Single +'\n\n' Text.Whitespace 'x' Name.Other '=' Operator '/1/' Literal.String.Regex ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'x' Name.Other '=' Operator @@ -419,7 +419,7 @@ '/' Operator 'g' Name.Other ';' Punctuation -'\n' Text +'\n' Text.Whitespace 'x' Name.Other '=' Operator @@ -429,18 +429,17 @@ '/' Operator 'g' Name.Other ';' Punctuation -'\n\n' Text - -'// real-world\n' Comment.Single +'\n\n' Text.Whitespace -'\n' Text +'// real-world' Comment.Single +'\n\n' Text.Whitespace 'var' Keyword.Declaration -' ' Text +' ' Text.Whitespace 'x' Name.Other -' ' Text +' ' Text.Whitespace '=' Operator -' ' Text +' ' Text.Whitespace '1' Literal.Number.Float '/' Operator '(' Punctuation @@ -454,28 +453,29 @@ ')' Punctuation ')' Punctuation ';' Punctuation -' ' Text -'// convert to number between 1-0\n' Comment.Single +' ' Text.Whitespace +'// convert to number between 1-0' Comment.Single +'\n' Text.Whitespace 'return' Keyword -' ' Text +' ' Text.Whitespace 'Math' Name.Builtin '.' Punctuation 'round' Name.Other '(' Punctuation '(' Punctuation 'num' Name.Other -' ' Text +' ' Text.Whitespace '/' Operator -' ' Text +' ' Text.Whitespace 'den' Name.Other ')' Punctuation -' ' Text +' ' Text.Whitespace '*' Operator -' ' Text +' ' Text.Whitespace '100' Literal.Number.Float ')' Punctuation '/' Operator '100' Literal.Number.Float ';' Punctuation -'\n' Text +'\n' Text.Whitespace |