diff options
| author | Miikka Salminen <miikka.salminen@gmail.com> | 2016-02-06 22:01:49 +0200 |
|---|---|---|
| committer | Miikka Salminen <miikka.salminen@gmail.com> | 2016-02-06 22:01:49 +0200 |
| commit | 995aa30dfb51621a017833258654d35ec3fc2c30 (patch) | |
| tree | 478df67e08fb01720e3426f7006c0ab2f322a35e /tests/examplefiles | |
| parent | 0c812483363f57bc812f979d70d6b6773da6135f (diff) | |
| download | pygments-995aa30dfb51621a017833258654d35ec3fc2c30.tar.gz | |
Add tokens for string affixes and heredoc delimiters. Add lexing for them in C/C++, Perl, PHP, Python and Ruby. Update my old style Lovelace accordingly.
Diffstat (limited to 'tests/examplefiles')
| -rw-r--r-- | tests/examplefiles/example2.cpp | 20 | ||||
| -rw-r--r-- | tests/examplefiles/test.php | 5 |
2 files changed, 25 insertions, 0 deletions
diff --git a/tests/examplefiles/example2.cpp b/tests/examplefiles/example2.cpp new file mode 100644 index 00000000..ccd99383 --- /dev/null +++ b/tests/examplefiles/example2.cpp @@ -0,0 +1,20 @@ +/* + * A Test file for the different string literals. + */ + +#include <iostream> + +int main() { + char *_str = "a normal string"; + wchar_t *L_str = L"a wide string"; + char *u8_str = u8"utf-8 string"; + char16_t *u_str = u"utf-16 string"; + char32_t *U_str = U"utf-32 string"; + char *R_str = R""""(raw string with +""" +as a delimiter)""""; + + std::cout << R_str << std::endl; + + return 0; +} diff --git a/tests/examplefiles/test.php b/tests/examplefiles/test.php index 794961c1..e8efdc6a 100644 --- a/tests/examplefiles/test.php +++ b/tests/examplefiles/test.php @@ -535,5 +535,10 @@ $magic->__toString(); EOF; +echo <<<"some_delimiter" +more heredoc testing +continues on this line +some_delimiter; + ?> |
