Colomban Wendling
d40932ce4d
C++: mitigate matching error on generics containing an expression
...
Mitigate parse error with generics like `foo<X<Y> x;` by avoiding
matching past a semicolon (";") or open curly brace ("{"), which
can't be part of the generic. This isn't a proper fix, but mitigates
the impact of such constructs.
2014-01-23 14:17:43 +01:00
SiegeLord
416c3daecc
Clean up Rust ctag tests and make them more comprehensive
2014-01-14 12:50:38 -05:00
Colomban Wendling
370666865b
Add Rust tests to the makefile
2014-01-14 12:50:38 -05:00
dobkeratops
09cb24c7c7
Add Rust ctag tests
2014-01-14 12:50:38 -05:00
Colomban Wendling
a7884ee2f8
JavaScript: fix parsing of files starting with a shebang
...
Closes #1016 .
2013-12-24 19:30:04 +01:00
Enrico Tröger
48fe855b50
Adjust test case tags file for fixed Python parser (class arglist assignment)
2013-10-13 18:55:16 +02:00
Enrico Tröger
3443e288fe
Add flag to tm_tags_find() to indicate the tags array may not be sorted
...
tm_tags_find() relies on a sorted tags array to be passed in but in
tm_source_file_set_tag_arglist() we don't have a sorted array yet and
sorting it on demand seems more heavy than the alternative:
make tm_tags_find() search the array linear if the new flag is set.
This fixes a bug in the Python parser when assigning the argument list
of __init__() methods to their class' argument list which annoyed me
for years already.
Also add a test case for this.
2013-10-13 18:52:56 +02:00
Colomban Wendling
32b971cf1c
JavaScript: fix parsing of regular expressions in a return statement
2013-09-23 16:52:55 +02:00
Colomban Wendling
6063e077c3
PHP: Recognize vertical tab (\v) and form-feed (\f) as whitespaces
...
Even though PHP doesn't handle those very well (it emits warnings about
"unexpected character"), it still counts them as whitespaces, so
properly handle them as such.
2013-08-15 14:51:28 +02:00
Colomban Wendling
0101365b1f
PHP: Add strings tests
2013-08-15 14:51:28 +02:00
Colomban Wendling
cc9e56e9bc
PHP: Fix parsing of anonymous functions using the "use" keyword
...
http://www.php.net/manual/en/language.namespaces.php#104136
2013-08-08 17:27:25 +02:00
Colomban Wendling
fb7bd34592
PHP: Fix parsing of anonymous functions returning a reference
2013-08-08 17:27:25 +02:00
Colomban Wendling
e0ef859c7f
Verilog: Fix parsing initializers
...
Import upstream CTags fix for parsing Verilog initalizers
(fixes parsing of test bug2747828.v).
2013-07-19 17:17:55 +02:00
Colomban Wendling
b016e132fd
Java: Report enums and fix parsing them
2013-07-15 17:42:00 +02:00
Alexander Eberspächer
3dc5422860
Add test for complex datatype Cython tag generation
2013-07-15 10:08:11 +02:00
Colomban Wendling
b39f90c94d
C++11, C#: Fix parsing of enums with a base type inside classes
2013-07-14 20:34:44 +02:00
Colomban Wendling
af5dfba9d8
C#: Correctly parse enums with a base type specifier
...
See CSharp Language Specification 14.1.
2013-07-14 03:12:22 +02:00
Colomban Wendling
f842ed9aac
Tests: add PHP case sensitivity test
2013-07-03 19:26:23 +02:00
Colomban Wendling
4de97daa8c
Tests: add test for PHP 5.5 additional usage of the "class" keyword
2013-07-03 19:26:23 +02:00
Colomban Wendling
9b1890b605
PHP: add support for "<script language=php>" open and close tags
...
http://www.php.net/manual/en/language.basic-syntax.phptags.php
2013-07-03 19:26:23 +02:00
Colomban Wendling
3235f57bc9
Tests: fix PHP tests results
2013-07-03 19:26:23 +02:00
Colomban Wendling
d1f2005738
Merge branch 'sql-parser-update'
2013-06-26 16:37:12 +02:00
Colomban Wendling
08fe915ce8
SQL: report scope as such, not as part of the tag name
2013-06-26 16:33:35 +02:00
Colomban Wendling
f02b70949a
tests: Add a missing test file (oops)
...
I forgot to add the files in 32074064ab91104d7bdfbb5dc0dcd97faf7f7f11,
oops.
2013-06-25 15:06:16 +02:00
Colomban Wendling
32074064ab
tests: Add a test for Fortran procedure pointers
...
Test file from Alexander Eberspächer.
2013-06-24 23:07:52 +02:00
Colomban Wendling
e4f82f28b7
tests: Add a test for forall Fortran issue
...
Test file from Alexander Eberspächer.
2013-06-24 22:57:10 +02:00
Colomban Wendling
8b11f9b0ef
SQL: generalize support for SQL Server square brackets quoting
...
This fixes test case tests/ctags/bug1944150.sql.
2013-06-24 20:27:22 +02:00
Colomban Wendling
76a7d3c902
SQL: Update parser from upstream CTags
2013-06-24 18:04:46 +02:00
Colomban Wendling
ac344e5d83
Improve error log when a tag parser test fails
2013-06-23 20:15:51 +02:00
Colomban Wendling
8037fa5d10
Import all test cases from upstream CTags that work for us
...
The test results were auto-generated and not manually checked, so they
may be inaccurate. They should be fixed if appropriate if they start
to fail, e.g. when modifying the relevant parser.
CTags' tests that didn't pass weren't imported, but probably should be
added an the relevant parser fixed.
2013-06-23 15:13:13 +02:00
Colomban Wendling
c1deb7457f
Add a test infrastructure for tag parsers
2013-06-23 15:08:27 +02:00