diff options
author | Neil <nyamatongwe@gmail.com> | 2020-02-03 15:20:08 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-02-03 15:20:08 +1100 |
commit | 0a984bc270cda2e119fbbfe2dd7ad2511de8fe22 (patch) | |
tree | 1f0675f365bd091ad66d663080418573ec177829 | |
parent | ed0cce0636f2871d7b75e382227f09f593301008 (diff) | |
download | scintilla-mirror-0a984bc270cda2e119fbbfe2dd7ad2511de8fe22.tar.gz |
Bug [#2143]. Add test case for comment start in number.
This is before-fix and demonstrates the issue.
-rw-r--r-- | lexilla/test/examples/hypertext/apostophe.php | 11 | ||||
-rw-r--r-- | lexilla/test/examples/hypertext/apostophe.php.styled | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/lexilla/test/examples/hypertext/apostophe.php b/lexilla/test/examples/hypertext/apostophe.php new file mode 100644 index 000000000..ade729bfa --- /dev/null +++ b/lexilla/test/examples/hypertext/apostophe.php @@ -0,0 +1,11 @@ +<?php +# Test that currently fails as comment style not started in a number. +# line-comment +// line-comment +/* comment */ +$foo = 0#comment +$foo = 0//comment +$foo = 0/*'*/; +?> + +<br /> diff --git a/lexilla/test/examples/hypertext/apostophe.php.styled b/lexilla/test/examples/hypertext/apostophe.php.styled new file mode 100644 index 000000000..0c27ab50c --- /dev/null +++ b/lexilla/test/examples/hypertext/apostophe.php.styled @@ -0,0 +1,11 @@ +{18}<?php{118} +{125}# Test that currently fails as comment style not started in a number.{118} +{125}# line-comment{118} +{125}// line-comment{118} +{124}/* comment */{118} +{123}$foo{118} {127}={118} {122}0{118}#comment +{123}$foo{118} {127}={118} {122}0{127}//{118}comment +{123}$foo{118} {127}={118} {122}0{127}/*{120}'*/; +?> + +<br /> |