[geany/geany] 55b4b8: javascript: Don't use invalid syntax in a test case

Colomban Wendling git-noreply at xxxxx
Mon Nov 24 02:50:00 UTC 2014


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Mon, 24 Nov 2014 02:50:00 UTC
Commit:      55b4b867f31203ae13e651d65c57f94d6a0aa0cb
             https://github.com/geany/geany/commit/55b4b867f31203ae13e651d65c57f94d6a0aa0cb

Log Message:
-----------
javascript: Don't use invalid syntax in a test case

A regex is not a valid JavaScript property name, and the test case was
not meant to specifically check for handling of invalid syntax but
rather valid regex syntax with embedded quotes.


Modified Paths:
--------------
    tests/ctags/1878155.js
    tests/ctags/1878155.js.tags

Modified: tests/ctags/1878155.js
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -8,7 +8,7 @@
 //
 
 // This should handle the escaped quote
-var RE={/foo\"/: "bar"};
+var RE={"bar":/foo\"/};
 
 // This should also handle the escaped quote
 // A tag should be created for the global variable "foo".


Modified: tests/ctags/1878155.js.tags
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -1,4 +1,5 @@
 # format=tagmanager
 RE�1�0
+bar�64�RE�0
 foo�16384�0
 my_function�16�()�0



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list