Permalink
Browse files

Fix string escaping in geshi template

  • Loading branch information...
LadyCailin committed Nov 8, 2017
1 parent 93326ff commit edf9b949e5b387d3868b47a48c9956407600da1f
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/main/resources/syntax-templates/geshi/default.php
@@ -14,10 +14,11 @@
'LANG_NAME' => 'CommandHelper',
'COMMENT_SINGLE' => array(1 => '#', 2 => '//'),
'HARD_QUOTE' => array("'", "'"),
'HARDESCAPE' => array("\\"),
'HARDESCAPE' => array('\\\''),
'HARDCHAR' => array("\\"),
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
'QUOTEMARKS' => array('"', "'"),
'ESCAPE_CHAR' => array('\\'),
'ESCAPE_REGEXP' => array(
//Simple Single Char Escapes
1 => "#\\\\[nfrtv\$\"\n\\\\]#i",
@@ -92,8 +93,8 @@
)
),
'URLS' => array(
1 => 'http://wiki.sk89q.com/wiki/CommandHelper/Staged/API/{FNAMEL}',
2 => 'http://wiki.sk89q.com/wiki/CommandHelper/Staged/API/{FNAMEL}'
1 => 'https://methodscript.com/docs/3.3.2/API/functions{FNAMEL}',
2 => 'https://methodscript.com/docs/3.3.2/API/functions{FNAMEL}'
),
'OOLANG' => false,
'REGEXPS' => array(

0 comments on commit edf9b94

Please sign in to comment.