Skip to content

Commit

Permalink
Add a test case for various uncommon leading characters in tag names
Browse files Browse the repository at this point in the history
  • Loading branch information
b4n committed Nov 1, 2017
1 parent 01ecf65 commit f24820b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions Units/parser-javascript.r/js-odd-method-names.d/args.ctags
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--sort=no
12 changes: 12 additions & 0 deletions Units/parser-javascript.r/js-odd-method-names.d/expected.tags
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
\!hello input.js /^ '!hello': function(){},$/;" m class:object
\ hello input.js /^ ' hello': function(){},$/;" m class:object
<hello input.js /^ '<hello': function(){},$/;" m class:object
>hello input.js /^ '>hello': function(){},$/;" m class:object
\thello input.js /^ ' hello': function(){},$/;" m class:object
\\hello input.js /^ '\\\\hello': function(){},$/;" m class:object
;"hello input.js /^ ';"hello': function(){},$/;" m class:object
"hello input.js /^ '"hello': function(){},$/;" m class:object
'hello input.js /^ "'hello": function(){},$/;" m class:object
hello! input.js /^ 'hello!': function(){},$/;" m class:object
hello input.js /^ 'hello ': function(){},$/;" m class:object
object input.js /^var object = {$/;" c
13 changes: 13 additions & 0 deletions Units/parser-javascript.r/js-odd-method-names.d/input.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var object = {
'!hello': function(){},
' hello': function(){},
'<hello': function(){},
'>hello': function(){},
' hello': function(){},
'\\hello': function(){},
';"hello': function(){},
'"hello': function(){},
"'hello": function(){},
'hello!': function(){},
'hello ': function(){},
};

0 comments on commit f24820b

Please sign in to comment.