PHP: Add strings tests
This commit is contained in:
parent
a114d1c3e2
commit
0101365b1f
@ -221,6 +221,7 @@ test_sources = \
|
||||
state_machine.v \
|
||||
static_array.c \
|
||||
stdcall.f \
|
||||
strings.php \
|
||||
strings.rb \
|
||||
structure.f \
|
||||
tabindent.py \
|
||||
|
24
tests/ctags/strings.php
Normal file
24
tests/ctags/strings.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
$a = "hello";
|
||||
|
||||
$b = 'hello';
|
||||
|
||||
$c = "hello \"buddy\"";
|
||||
|
||||
$d = 'hello \'buddy\'';
|
||||
|
||||
$e = <<<EOS
|
||||
hello buddy
|
||||
EOS;
|
||||
|
||||
$f = <<<'EOS'
|
||||
hello buddy
|
||||
EOS;
|
||||
|
||||
$g = <<<"EOS"
|
||||
hello buddy
|
||||
EOS;
|
||||
|
||||
# just to check we're correctly out of a string here
|
||||
$zzz_end = 42;
|
9
tests/ctags/strings.php.tags
Normal file
9
tests/ctags/strings.php.tags
Normal file
@ -0,0 +1,9 @@
|
||||
# format=tagmanager
|
||||
aÌ16384Ö0
|
||||
bÌ16384Ö0
|
||||
cÌ16384Ö0
|
||||
dÌ16384Ö0
|
||||
eÌ16384Ö0
|
||||
fÌ16384Ö0
|
||||
gÌ16384Ö0
|
||||
zzz_endÌ16384Ö0
|
Loading…
x
Reference in New Issue
Block a user