13 Commits

Author SHA1 Message Date
Andreas Dangel
0710877d05 [core] Deprecate AntlrToken#getType() in favor of #getKind()
Refs #2371
2020-04-10 18:50:58 +02:00
Andreas Dangel
a1a13b6234 [dart] Add multi-line string example 2019-05-25 19:18:09 +02:00
Maikel Steneker
806b130e4a Improved Dart tokenizer to handle strings correctly.
This is based on the grammar at https://github.com/chalin/dart-spec-and-grammar/blob/master/doc/grammar-AUTOGENERATED-DO-NOT-EDIT.txt.

The string handling is now much closer to this grammar, resulting in more files being tokenized correctly.
2019-05-21 14:43:34 +02:00
Maikel Steneker
bcf0de6880 Various unit tests for strings that are currently not handled correctly by the Dart tokenizer. 2019-05-21 14:43:16 +02:00
Maikel Steneker
1ebfb7df87 Extended Dart grammar to take escape sequences into account. 2019-04-30 14:01:07 +02:00
Maikel Steneker
6f442b15ca Added Dart tokenizer test cases for escaped backslashes (\\) and other characters (\n, \$). 2019-04-30 13:58:12 +02:00
Maikel Steneker
26a64be1d2 Dart grammar now supports string containing escaped quotes. 2019-04-24 15:52:22 +02:00
Maikel Steneker
1e2e591ac4 Added unit test for string containing escaped quotes. 2019-04-24 15:43:53 +02:00
Juan Martín Sotuyo Dodero
ee227019aa Update changelog, refs #1761 2019-04-10 16:17:25 -03:00
Maikel Steneker
7b78ac75d0 Minor formatting changes. 2019-04-05 17:22:31 +02:00
Maikel Steneker
1a16d1a52d Adjusted Dart tokenizer to skip over uninteresting changes. 2019-04-05 17:05:26 +02:00
Maikel Steneker
745ebc461c Added test cases for Dart support for CPD. 2019-04-05 17:04:49 +02:00
Maikel Steneker
8db2026735 Added Dart support to CPD.
The tokenizer uses an ANTLR4 grammar based on the one at https://github.com/antlr/grammars-v4/tree/master/dart2.
2019-04-05 17:04:00 +02:00