diff options
| author | Christina Whyte <kurisu.whyte@gmail.com> | 2013-07-21 18:31:01 -0300 |
|---|---|---|
| committer | Christina Whyte <kurisu.whyte@gmail.com> | 2013-07-21 18:31:01 -0300 |
| commit | 0755db090d44908eb94dcc87f84837711995d592 (patch) | |
| tree | 746456f30a3cd4185a02d7ebd0eaee180ed161e8 /tests/examplefiles | |
| parent | 1ea0fa53d253eae501f0a48611dd01493240b34d (diff) | |
| download | pygments-0755db090d44908eb94dcc87f84837711995d592.tar.gz | |
Word array lexer shouldn't be greedy.
Word array is only allowed to contain words and whitespace, `]>` is not allowed
to occur in such a construct, thus it should end the construct at the very
first occurrence.
An example of the problem can be seen in this gist:
https://gist.github.com/kurisuwhyte/6050066
Diffstat (limited to 'tests/examplefiles')
| -rw-r--r-- | tests/examplefiles/livescript-demo.ls | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/examplefiles/livescript-demo.ls b/tests/examplefiles/livescript-demo.ls index 2ff68c63..16d1894a 100644 --- a/tests/examplefiles/livescript-demo.ls +++ b/tests/examplefiles/livescript-demo.ls @@ -9,6 +9,8 @@ underscores_i$d = -> //regexp2//g 'strings' and "strings" and \strings +another-word-list = <[ more words ]> + [2 til 10] |> map (* 2) |> filter (> 5) |
