smarty_internal_configfilelexer.php 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732
  1. <?php
  2. /**
  3. * Smarty Internal Plugin Configfilelexer
  4. *
  5. * This is the lexer to break the config file source into tokens
  6. *
  7. * @package Smarty
  8. * @subpackage Config
  9. * @author Uwe Tews
  10. */
  11. /**
  12. * Smarty_Internal_Configfilelexer
  13. *
  14. * This is the config file lexer.
  15. * It is generated from the smarty_internal_configfilelexer.plex file
  16. *
  17. * @package Smarty
  18. * @subpackage Compiler
  19. * @author Uwe Tews
  20. */
  21. class Smarty_Internal_Configfilelexer
  22. {
  23. /**
  24. * Source
  25. *
  26. * @var string
  27. */
  28. public $data;
  29. /**
  30. * Source length
  31. *
  32. * @var int
  33. */
  34. public $dataLength = null;
  35. /**
  36. * byte counter
  37. *
  38. * @var int
  39. */
  40. public $counter;
  41. /**
  42. * token number
  43. *
  44. * @var int
  45. */
  46. public $token;
  47. /**
  48. * token value
  49. *
  50. * @var string
  51. */
  52. public $value;
  53. /**
  54. * current line
  55. *
  56. * @var int
  57. */
  58. public $line;
  59. /**
  60. * state number
  61. *
  62. * @var int
  63. */
  64. public $state = 1;
  65. /**
  66. * Smarty object
  67. *
  68. * @var Smarty
  69. */
  70. public $smarty = null;
  71. /**
  72. * compiler object
  73. *
  74. * @var Smarty_Internal_Config_File_Compiler
  75. */
  76. private $compiler = null;
  77. /**
  78. * copy of config_booleanize
  79. *
  80. * @var bool
  81. */
  82. private $configBooleanize = false;
  83. /**
  84. * trace file
  85. *
  86. * @var resource
  87. */
  88. public $yyTraceFILE;
  89. /**
  90. * trace prompt
  91. *
  92. * @var string
  93. */
  94. public $yyTracePrompt;
  95. /**
  96. * state names
  97. *
  98. * @var array
  99. */
  100. public $state_name = array(1 => 'START', 2 => 'VALUE', 3 => 'NAKED_STRING_VALUE', 4 => 'COMMENT', 5 => 'SECTION',
  101. 6 => 'TRIPPLE');
  102. /**
  103. * storage for assembled token patterns
  104. *
  105. * @var string
  106. */
  107. private $yy_global_pattern1 = null;
  108. private $yy_global_pattern2 = null;
  109. private $yy_global_pattern3 = null;
  110. private $yy_global_pattern4 = null;
  111. private $yy_global_pattern5 = null;
  112. private $yy_global_pattern6 = null;
  113. /**
  114. * token names
  115. *
  116. * @var array
  117. */
  118. public $smarty_token_names = array( // Text for parser error messages
  119. );
  120. /**
  121. * constructor
  122. *
  123. * @param string $data template source
  124. * @param Smarty_Internal_Config_File_Compiler $compiler
  125. */
  126. function __construct($data, Smarty_Internal_Config_File_Compiler $compiler)
  127. {
  128. $this->data = $data . "\n"; //now all lines are \n-terminated
  129. $this->dataLength = strlen($data);
  130. $this->counter = 0;
  131. if (preg_match('/^\xEF\xBB\xBF/', $this->data, $match)) {
  132. $this->counter += strlen($match[ 0 ]);
  133. }
  134. $this->line = 1;
  135. $this->compiler = $compiler;
  136. $this->smarty = $compiler->smarty;
  137. $this->configBooleanize = $this->smarty->config_booleanize;
  138. }
  139. public function PrintTrace()
  140. {
  141. $this->yyTraceFILE = fopen('php://output', 'w');
  142. $this->yyTracePrompt = '<br>';
  143. }
  144. private $_yy_state = 1;
  145. private $_yy_stack = array();
  146. public function yylex()
  147. {
  148. return $this->{'yylex' . $this->_yy_state}();
  149. }
  150. public function yypushstate($state)
  151. {
  152. if ($this->yyTraceFILE) {
  153. fprintf($this->yyTraceFILE, "%sState Push %s\n", $this->yyTracePrompt,
  154. isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] :
  155. $this->_yy_state);
  156. }
  157. array_push($this->_yy_stack, $this->_yy_state);
  158. $this->_yy_state = $state;
  159. if ($this->yyTraceFILE) {
  160. fprintf($this->yyTraceFILE, "%snew State %s\n", $this->yyTracePrompt,
  161. isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] :
  162. $this->_yy_state);
  163. }
  164. }
  165. public function yypopstate()
  166. {
  167. if ($this->yyTraceFILE) {
  168. fprintf($this->yyTraceFILE, "%sState pop %s\n", $this->yyTracePrompt,
  169. isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] :
  170. $this->_yy_state);
  171. }
  172. $this->_yy_state = array_pop($this->_yy_stack);
  173. if ($this->yyTraceFILE) {
  174. fprintf($this->yyTraceFILE, "%snew State %s\n", $this->yyTracePrompt,
  175. isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] :
  176. $this->_yy_state);
  177. }
  178. }
  179. public function yybegin($state)
  180. {
  181. $this->_yy_state = $state;
  182. if ($this->yyTraceFILE) {
  183. fprintf($this->yyTraceFILE, "%sState set %s\n", $this->yyTracePrompt,
  184. isset($this->state_name[ $this->_yy_state ]) ? $this->state_name[ $this->_yy_state ] :
  185. $this->_yy_state);
  186. }
  187. }
  188. public function yylex1()
  189. {
  190. if (!isset($this->yy_global_pattern1)) {
  191. $this->yy_global_pattern1 =
  192. "/\G(#|;)|\G(\\[)|\G(\\])|\G(=)|\G([ \t\r]+)|\G(\n)|\G([0-9]*[a-zA-Z_]\\w*)|\G([\S\s])/isS";
  193. }
  194. if (!isset($this->dataLength)) {
  195. $this->dataLength = strlen($this->data);
  196. }
  197. if ($this->counter >= $this->dataLength) {
  198. return false; // end of input
  199. }
  200. do {
  201. if (preg_match($this->yy_global_pattern1, $this->data, $yymatches, null, $this->counter)) {
  202. if (!isset($yymatches[ 0 ][ 1 ])) {
  203. $yymatches = preg_grep("/(.|\s)+/", $yymatches);
  204. } else {
  205. $yymatches = array_filter($yymatches);
  206. }
  207. if (empty($yymatches)) {
  208. throw new Exception('Error: lexing failed because a rule matched' . ' an empty string. Input "' .
  209. substr($this->data, $this->counter, 5) . '... state START');
  210. }
  211. next($yymatches); // skip global match
  212. $this->token = key($yymatches); // token number
  213. $this->value = current($yymatches); // token value
  214. $r = $this->{'yy_r1_' . $this->token}();
  215. if ($r === null) {
  216. $this->counter += strlen($this->value);
  217. $this->line += substr_count($this->value, "\n");
  218. // accept this token
  219. return true;
  220. } elseif ($r === true) {
  221. // we have changed state
  222. // process this token in the new state
  223. return $this->yylex();
  224. } elseif ($r === false) {
  225. $this->counter += strlen($this->value);
  226. $this->line += substr_count($this->value, "\n");
  227. if ($this->counter >= $this->dataLength) {
  228. return false; // end of input
  229. }
  230. // skip this token
  231. continue;
  232. }
  233. } else {
  234. throw new Exception('Unexpected input at line' . $this->line . ': ' . $this->data[ $this->counter ]);
  235. }
  236. break;
  237. }
  238. while (true);
  239. } // end function
  240. const START = 1;
  241. function yy_r1_1()
  242. {
  243. $this->token = Smarty_Internal_Configfileparser::TPC_COMMENTSTART;
  244. $this->yypushstate(self::COMMENT);
  245. }
  246. function yy_r1_2()
  247. {
  248. $this->token = Smarty_Internal_Configfileparser::TPC_OPENB;
  249. $this->yypushstate(self::SECTION);
  250. }
  251. function yy_r1_3()
  252. {
  253. $this->token = Smarty_Internal_Configfileparser::TPC_CLOSEB;
  254. }
  255. function yy_r1_4()
  256. {
  257. $this->token = Smarty_Internal_Configfileparser::TPC_EQUAL;
  258. $this->yypushstate(self::VALUE);
  259. }
  260. function yy_r1_5()
  261. {
  262. return false;
  263. }
  264. function yy_r1_6()
  265. {
  266. $this->token = Smarty_Internal_Configfileparser::TPC_NEWLINE;
  267. }
  268. function yy_r1_7()
  269. {
  270. $this->token = Smarty_Internal_Configfileparser::TPC_ID;
  271. }
  272. function yy_r1_8()
  273. {
  274. $this->token = Smarty_Internal_Configfileparser::TPC_OTHER;
  275. }
  276. public function yylex2()
  277. {
  278. if (!isset($this->yy_global_pattern2)) {
  279. $this->yy_global_pattern2 =
  280. "/\G([ \t\r]+)|\G(\\d+\\.\\d+(?=[ \t\r]*[\n#;]))|\G(\\d+(?=[ \t\r]*[\n#;]))|\G(\"\"\")|\G('[^'\\\\]*(?:\\\\.[^'\\\\]*)*'(?=[ \t\r]*[\n#;]))|\G(\"[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*\"(?=[ \t\r]*[\n#;]))|\G([a-zA-Z]+(?=[ \t\r]*[\n#;]))|\G([^\n]+?(?=[ \t\r]*\n))|\G(\n)/isS";
  281. }
  282. if (!isset($this->dataLength)) {
  283. $this->dataLength = strlen($this->data);
  284. }
  285. if ($this->counter >= $this->dataLength) {
  286. return false; // end of input
  287. }
  288. do {
  289. if (preg_match($this->yy_global_pattern2, $this->data, $yymatches, null, $this->counter)) {
  290. if (!isset($yymatches[ 0 ][ 1 ])) {
  291. $yymatches = preg_grep("/(.|\s)+/", $yymatches);
  292. } else {
  293. $yymatches = array_filter($yymatches);
  294. }
  295. if (empty($yymatches)) {
  296. throw new Exception('Error: lexing failed because a rule matched' . ' an empty string. Input "' .
  297. substr($this->data, $this->counter, 5) . '... state VALUE');
  298. }
  299. next($yymatches); // skip global match
  300. $this->token = key($yymatches); // token number
  301. $this->value = current($yymatches); // token value
  302. $r = $this->{'yy_r2_' . $this->token}();
  303. if ($r === null) {
  304. $this->counter += strlen($this->value);
  305. $this->line += substr_count($this->value, "\n");
  306. // accept this token
  307. return true;
  308. } elseif ($r === true) {
  309. // we have changed state
  310. // process this token in the new state
  311. return $this->yylex();
  312. } elseif ($r === false) {
  313. $this->counter += strlen($this->value);
  314. $this->line += substr_count($this->value, "\n");
  315. if ($this->counter >= $this->dataLength) {
  316. return false; // end of input
  317. }
  318. // skip this token
  319. continue;
  320. }
  321. } else {
  322. throw new Exception('Unexpected input at line' . $this->line . ': ' . $this->data[ $this->counter ]);
  323. }
  324. break;
  325. }
  326. while (true);
  327. } // end function
  328. const VALUE = 2;
  329. function yy_r2_1()
  330. {
  331. return false;
  332. }
  333. function yy_r2_2()
  334. {
  335. $this->token = Smarty_Internal_Configfileparser::TPC_FLOAT;
  336. $this->yypopstate();
  337. }
  338. function yy_r2_3()
  339. {
  340. $this->token = Smarty_Internal_Configfileparser::TPC_INT;
  341. $this->yypopstate();
  342. }
  343. function yy_r2_4()
  344. {
  345. $this->token = Smarty_Internal_Configfileparser::TPC_TRIPPLE_QUOTES;
  346. $this->yypushstate(self::TRIPPLE);
  347. }
  348. function yy_r2_5()
  349. {
  350. $this->token = Smarty_Internal_Configfileparser::TPC_SINGLE_QUOTED_STRING;
  351. $this->yypopstate();
  352. }
  353. function yy_r2_6()
  354. {
  355. $this->token = Smarty_Internal_Configfileparser::TPC_DOUBLE_QUOTED_STRING;
  356. $this->yypopstate();
  357. }
  358. function yy_r2_7()
  359. {
  360. if (!$this->configBooleanize ||
  361. !in_array(strtolower($this->value), Array("true", "false", "on", "off", "yes", "no"))
  362. ) {
  363. $this->yypopstate();
  364. $this->yypushstate(self::NAKED_STRING_VALUE);
  365. return true; //reprocess in new state
  366. } else {
  367. $this->token = Smarty_Internal_Configfileparser::TPC_BOOL;
  368. $this->yypopstate();
  369. }
  370. }
  371. function yy_r2_8()
  372. {
  373. $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING;
  374. $this->yypopstate();
  375. }
  376. function yy_r2_9()
  377. {
  378. $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING;
  379. $this->value = "";
  380. $this->yypopstate();
  381. }
  382. public function yylex3()
  383. {
  384. if (!isset($this->yy_global_pattern3)) {
  385. $this->yy_global_pattern3 = "/\G([^\n]+?(?=[ \t\r]*\n))/isS";
  386. }
  387. if (!isset($this->dataLength)) {
  388. $this->dataLength = strlen($this->data);
  389. }
  390. if ($this->counter >= $this->dataLength) {
  391. return false; // end of input
  392. }
  393. do {
  394. if (preg_match($this->yy_global_pattern3, $this->data, $yymatches, null, $this->counter)) {
  395. if (!isset($yymatches[ 0 ][ 1 ])) {
  396. $yymatches = preg_grep("/(.|\s)+/", $yymatches);
  397. } else {
  398. $yymatches = array_filter($yymatches);
  399. }
  400. if (empty($yymatches)) {
  401. throw new Exception('Error: lexing failed because a rule matched' . ' an empty string. Input "' .
  402. substr($this->data, $this->counter, 5) . '... state NAKED_STRING_VALUE');
  403. }
  404. next($yymatches); // skip global match
  405. $this->token = key($yymatches); // token number
  406. $this->value = current($yymatches); // token value
  407. $r = $this->{'yy_r3_' . $this->token}();
  408. if ($r === null) {
  409. $this->counter += strlen($this->value);
  410. $this->line += substr_count($this->value, "\n");
  411. // accept this token
  412. return true;
  413. } elseif ($r === true) {
  414. // we have changed state
  415. // process this token in the new state
  416. return $this->yylex();
  417. } elseif ($r === false) {
  418. $this->counter += strlen($this->value);
  419. $this->line += substr_count($this->value, "\n");
  420. if ($this->counter >= $this->dataLength) {
  421. return false; // end of input
  422. }
  423. // skip this token
  424. continue;
  425. }
  426. } else {
  427. throw new Exception('Unexpected input at line' . $this->line . ': ' . $this->data[ $this->counter ]);
  428. }
  429. break;
  430. }
  431. while (true);
  432. } // end function
  433. const NAKED_STRING_VALUE = 3;
  434. function yy_r3_1()
  435. {
  436. $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING;
  437. $this->yypopstate();
  438. }
  439. public function yylex4()
  440. {
  441. if (!isset($this->yy_global_pattern4)) {
  442. $this->yy_global_pattern4 = "/\G([ \t\r]+)|\G([^\n]+?(?=[ \t\r]*\n))|\G(\n)/isS";
  443. }
  444. if (!isset($this->dataLength)) {
  445. $this->dataLength = strlen($this->data);
  446. }
  447. if ($this->counter >= $this->dataLength) {
  448. return false; // end of input
  449. }
  450. do {
  451. if (preg_match($this->yy_global_pattern4, $this->data, $yymatches, null, $this->counter)) {
  452. if (!isset($yymatches[ 0 ][ 1 ])) {
  453. $yymatches = preg_grep("/(.|\s)+/", $yymatches);
  454. } else {
  455. $yymatches = array_filter($yymatches);
  456. }
  457. if (empty($yymatches)) {
  458. throw new Exception('Error: lexing failed because a rule matched' . ' an empty string. Input "' .
  459. substr($this->data, $this->counter, 5) . '... state COMMENT');
  460. }
  461. next($yymatches); // skip global match
  462. $this->token = key($yymatches); // token number
  463. $this->value = current($yymatches); // token value
  464. $r = $this->{'yy_r4_' . $this->token}();
  465. if ($r === null) {
  466. $this->counter += strlen($this->value);
  467. $this->line += substr_count($this->value, "\n");
  468. // accept this token
  469. return true;
  470. } elseif ($r === true) {
  471. // we have changed state
  472. // process this token in the new state
  473. return $this->yylex();
  474. } elseif ($r === false) {
  475. $this->counter += strlen($this->value);
  476. $this->line += substr_count($this->value, "\n");
  477. if ($this->counter >= $this->dataLength) {
  478. return false; // end of input
  479. }
  480. // skip this token
  481. continue;
  482. }
  483. } else {
  484. throw new Exception('Unexpected input at line' . $this->line . ': ' . $this->data[ $this->counter ]);
  485. }
  486. break;
  487. }
  488. while (true);
  489. } // end function
  490. const COMMENT = 4;
  491. function yy_r4_1()
  492. {
  493. return false;
  494. }
  495. function yy_r4_2()
  496. {
  497. $this->token = Smarty_Internal_Configfileparser::TPC_NAKED_STRING;
  498. }
  499. function yy_r4_3()
  500. {
  501. $this->token = Smarty_Internal_Configfileparser::TPC_NEWLINE;
  502. $this->yypopstate();
  503. }
  504. public function yylex5()
  505. {
  506. if (!isset($this->yy_global_pattern5)) {
  507. $this->yy_global_pattern5 = "/\G(\\.)|\G(.*?(?=[\.=[\]\r\n]))/isS";
  508. }
  509. if (!isset($this->dataLength)) {
  510. $this->dataLength = strlen($this->data);
  511. }
  512. if ($this->counter >= $this->dataLength) {
  513. return false; // end of input
  514. }
  515. do {
  516. if (preg_match($this->yy_global_pattern5, $this->data, $yymatches, null, $this->counter)) {
  517. if (!isset($yymatches[ 0 ][ 1 ])) {
  518. $yymatches = preg_grep("/(.|\s)+/", $yymatches);
  519. } else {
  520. $yymatches = array_filter($yymatches);
  521. }
  522. if (empty($yymatches)) {
  523. throw new Exception('Error: lexing failed because a rule matched' . ' an empty string. Input "' .
  524. substr($this->data, $this->counter, 5) . '... state SECTION');
  525. }
  526. next($yymatches); // skip global match
  527. $this->token = key($yymatches); // token number
  528. $this->value = current($yymatches); // token value
  529. $r = $this->{'yy_r5_' . $this->token}();
  530. if ($r === null) {
  531. $this->counter += strlen($this->value);
  532. $this->line += substr_count($this->value, "\n");
  533. // accept this token
  534. return true;
  535. } elseif ($r === true) {
  536. // we have changed state
  537. // process this token in the new state
  538. return $this->yylex();
  539. } elseif ($r === false) {
  540. $this->counter += strlen($this->value);
  541. $this->line += substr_count($this->value, "\n");
  542. if ($this->counter >= $this->dataLength) {
  543. return false; // end of input
  544. }
  545. // skip this token
  546. continue;
  547. }
  548. } else {
  549. throw new Exception('Unexpected input at line' . $this->line . ': ' . $this->data[ $this->counter ]);
  550. }
  551. break;
  552. }
  553. while (true);
  554. } // end function
  555. const SECTION = 5;
  556. function yy_r5_1()
  557. {
  558. $this->token = Smarty_Internal_Configfileparser::TPC_DOT;
  559. }
  560. function yy_r5_2()
  561. {
  562. $this->token = Smarty_Internal_Configfileparser::TPC_SECTION;
  563. $this->yypopstate();
  564. }
  565. public function yylex6()
  566. {
  567. if (!isset($this->yy_global_pattern6)) {
  568. $this->yy_global_pattern6 = "/\G(\"\"\"(?=[ \t\r]*[\n#;]))|\G([\S\s])/isS";
  569. }
  570. if (!isset($this->dataLength)) {
  571. $this->dataLength = strlen($this->data);
  572. }
  573. if ($this->counter >= $this->dataLength) {
  574. return false; // end of input
  575. }
  576. do {
  577. if (preg_match($this->yy_global_pattern6, $this->data, $yymatches, null, $this->counter)) {
  578. if (!isset($yymatches[ 0 ][ 1 ])) {
  579. $yymatches = preg_grep("/(.|\s)+/", $yymatches);
  580. } else {
  581. $yymatches = array_filter($yymatches);
  582. }
  583. if (empty($yymatches)) {
  584. throw new Exception('Error: lexing failed because a rule matched' . ' an empty string. Input "' .
  585. substr($this->data, $this->counter, 5) . '... state TRIPPLE');
  586. }
  587. next($yymatches); // skip global match
  588. $this->token = key($yymatches); // token number
  589. $this->value = current($yymatches); // token value
  590. $r = $this->{'yy_r6_' . $this->token}();
  591. if ($r === null) {
  592. $this->counter += strlen($this->value);
  593. $this->line += substr_count($this->value, "\n");
  594. // accept this token
  595. return true;
  596. } elseif ($r === true) {
  597. // we have changed state
  598. // process this token in the new state
  599. return $this->yylex();
  600. } elseif ($r === false) {
  601. $this->counter += strlen($this->value);
  602. $this->line += substr_count($this->value, "\n");
  603. if ($this->counter >= $this->dataLength) {
  604. return false; // end of input
  605. }
  606. // skip this token
  607. continue;
  608. }
  609. } else {
  610. throw new Exception('Unexpected input at line' . $this->line . ': ' . $this->data[ $this->counter ]);
  611. }
  612. break;
  613. }
  614. while (true);
  615. } // end function
  616. const TRIPPLE = 6;
  617. function yy_r6_1()
  618. {
  619. $this->token = Smarty_Internal_Configfileparser::TPC_TRIPPLE_QUOTES_END;
  620. $this->yypopstate();
  621. $this->yypushstate(self::START);
  622. }
  623. function yy_r6_2()
  624. {
  625. $to = strlen($this->data);
  626. preg_match("/\"\"\"[ \t\r]*[\n#;]/", $this->data, $match, PREG_OFFSET_CAPTURE, $this->counter);
  627. if (isset($match[ 0 ][ 1 ])) {
  628. $to = $match[ 0 ][ 1 ];
  629. } else {
  630. $this->compiler->trigger_template_error("missing or misspelled literal closing tag");
  631. }
  632. $this->value = substr($this->data, $this->counter, $to - $this->counter);
  633. $this->token = Smarty_Internal_Configfileparser::TPC_TRIPPLE_TEXT;
  634. }
  635. }