153 Commits

Author SHA1 Message Date
SiegeLord
fba9d19ec7 Rust: Add a test for the new string lexer. 2014-07-29 09:34:04 -04:00
Colomban Wendling
4e0193d8f1 Zephir: add some tag parser tests 2014-05-15 18:08:25 +02:00
Colomban Wendling
d8aaa59f9a Python: fix parsing of variables assigned to triple quoted strings
Fixes #262.
2014-05-12 21:52:03 +02:00
Colomban Wendling
1514993a6a Fix generating distcheck on clean sources
There is no point in runner.sh depending on the generated Geany
executable, and this breaks running `make distcheck` before building
the sources, as the Geany executable doesn't exist yet.
2014-04-13 18:07:17 +02:00
SiegeLord
e4c6aa3d9c Rust: Add a test for leading 'priv'. 2014-04-02 13:42:30 -04:00
SiegeLord
e89c4af47c Rust: Add some more syntax examples to the CTags test file.
Also, made it compile again.
2014-04-02 13:05:57 -04:00
SiegeLord
2a80759a3a Rust: Update ctags tests.
Also, make them compile again with the Rust compiler.
2014-04-01 21:37:03 -04:00
Adam Hirst
5965b5ebd3 Fortran: add a few more test cases 2014-02-23 20:16:29 +01:00
Colomban Wendling
d8954bbf67 Fortran: add support for "len" and "kind" qualifiers
Test cases contributed by Adam Hirst, thanks.
2014-02-23 20:13:36 +01:00
Colomban Wendling
ed1dc50062 Fortran: allow keywords as names
Allow keywords for names of modules, programs, types, interfaces,
structures and enums.

Test case contributed by Adam Hirst, thanks.
2014-02-23 20:11:00 +01:00
Colomban Wendling
e47d45eb28 Fortran: fix handling of preprocessor directives on the first line
Fix a race initialization leading to incorrect handling of preprocessor
directives on the first input line.

Test case contributed by Adam Hirst, thanks.
2014-02-23 20:10:35 +01:00
Colomban Wendling
ef4c72501e Fortran: generate fake tags for anonymous structures, interfaces and enums
This allows both to show those anonymous elements, as well as giving a
parent to their children, fixing display in the symbols tree.
2014-02-23 20:02:55 +01:00
Colomban Wendling
9520e7f7d7 Fortran: parse Fortran 2003 enums
Allow for not-yet-standard enum naming using `:: name` syntax, see
http://docs.cray.com/books/S-3692-51/html-S-3692-51/z970507905n9123.html

Test cases contributed by Adam Hirst, thanks.
2014-02-23 20:01:30 +01:00
Colomban Wendling
329b2cb401 Fortran: don't generate tags for interface content 2014-02-23 19:38:34 +01:00
Colomban Wendling
5a67a4f64c Fortran: report interfaces 2014-02-18 19:33:39 +01:00
Colomban Wendling
29336ffed0 Fortran: display components 2014-02-18 19:11:47 +01:00
Colomban Wendling
362a5cc654 Fortran: properly report scope for programs, subroutines and types
To do this we change the internal types to only use types matched by
symbols_get_current_scope().  This is a bit of a hack, but the tag
types were already questionable and simply mapped to ones the
TagManager know.

This however merges Functions and Subroutines under the same top-level
item in the symbol list.
2014-02-18 19:04:37 +01:00
Colomban Wendling
7d76063282 Fortran: fix handling of pointer association operator
Test case contributed by Adam Hirst, thanks.

Closes #1030.
2014-02-17 23:17:35 +01:00
Adam Hirst
1c0fa99e1d Support F2003 array syntax and F2008 coarrays
Fortran 2003 allows '[' and ']' as array constructors in addition to
the legacy '(/' and '/)'. Fortran 2008 allows '[]' as part of a
CODIMENSION specifier, which can either be `codimension[]` in
the type-spec; or as either `variable[]` or `variable()[]` in
the entry-spec.

Credit to Colomban Wendling for the skipOverSquares logic, and
treating `codimension` as a special-case.

Last part of bug #1023.
2014-02-15 15:48:31 +01:00
Colomban Wendling
497bfaed46 Fortran: fix line continuation inside comments
Fix improperly handling '&' at the end of the first comment line after
a non-comment line as a line continuation.

Part of bug #1023.
2014-02-15 00:33:05 +01:00
Adam Hirst
e1b115ee52 Added tests for the inclusion of ASSOCIATE in the tag manager 2014-02-14 19:31:08 +01:00
Enrico Tröger
09c2315bc4 Change expected tag kind for Python imports in tests since the parser has changed
This fixes the tests which failed because I changed the parsing yesterday to
classify Python as externvars and not as namespace tags anymore.
2014-02-09 09:26:36 +01:00
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