Skip to content

Commit e9c2d7c

Browse files
authored
Merge pull request #31 from greg0ire/feature/test-for-pdo-param
add test for :pdoParams
2 parents 0ee1d62 + e45c0c3 commit e9c2d7c

File tree

6 files changed

+15
-0
lines changed

6 files changed

+15
-0
lines changed

tests/clihighlight.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,9 @@
804804
SELECT
805805
@"weird variable name";
806806

807+
SELECT
808+
:pdoParam;
809+
807810
SELECT
808811
"no closing quote
809812

tests/compress.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@
7474

7575
SELECT @"weird variable name";
7676

77+
SELECT :pdoParam;
78+
7779
SELECT "no closing quote
7880

7981
SELECT [sqlserver] FROM [escap[e]]d style];

tests/format-highlight.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,6 +804,9 @@
804804
<pre style="color: black; background-color: white;"><span style="font-weight:bold;">SELECT</span>
805805
<span style="color: orange;">@&quot;weird variable name&quot;</span><span >;</span></pre>
806806

807+
<pre style="color: black; background-color: white;"><span style="font-weight:bold;">SELECT</span>
808+
<span style="color: orange;">:pdoParam</span><span >;</span></pre>
809+
807810
<pre style="color: black; background-color: white;"><span style="font-weight:bold;">SELECT</span>
808811
<span style="color: blue;">&quot;no closing quote</span></pre>
809812

tests/format.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,9 @@
802802
SELECT
803803
@"weird variable name";
804804

805+
SELECT
806+
:pdoParam;
807+
805808
SELECT
806809
"no closing quote
807810

tests/highlight.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@
258258

259259
<pre style="color: black; background-color: white;"><span style="font-weight:bold;">SELECT</span> <span style="color: orange;">@&quot;weird variable name&quot;</span><span >;</span></pre>
260260

261+
<pre style="color: black; background-color: white;"><span style="font-weight:bold;">SELECT</span> <span style="color: orange;">:pdoParam</span><span >;</span></pre>
262+
261263
<pre style="color: black; background-color: white;"><span style="font-weight:bold;">SELECT</span> <span style="color: blue;">&quot;no closing quote</span></pre>
262264

263265
<pre style="color: black; background-color: white;"><span style="font-weight:bold;">SELECT</span> <span style="color: purple;">[sqlserver]</span> <span style="font-weight:bold;">FROM</span> <span style="color: purple;">[escap[e]]d style]</span><span >;</span></pre>

tests/sql.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,8 @@ SELECT @ and b;
258258

259259
SELECT @"weird variable name";
260260

261+
SELECT :pdoParam;
262+
261263
SELECT "no closing quote
262264
263265
SELECT [sqlserver] FROM [escap[e]]d style];

0 commit comments

Comments
 (0)