mirror of
https://github.com/alecthomas/chroma.git
synced 2025-02-13 13:28:27 +02:00
Using these examples: ~~~ 0x21 1_000 1e3 ~~~ Several languages failed that support these syntax. Here are ones I found: Lexer | 0x21 | 1_000 | 1e3 -----------|------|-------|----- C# | fail | fail | fail Go | | fail | JavaScript | | fail | fail PHP | | fail | Python | | fail | Ruby | | | fail I fixed these issues, and added tests.
13 lines
282 B
Plaintext
13 lines
282 B
Plaintext
$docs = $modx->getIterator('modResource', ["parent" => 84]);
|
|
|
|
$n = 0x21 + 1_000;
|
|
$n2 = 1e3;
|
|
|
|
foreach($docs as $doc){
|
|
$q=$doc->content;
|
|
$doc->set("content", preg_replace("/Some value/i", "Replacement", $q));
|
|
print_r($doc->content);
|
|
// $doc->save();
|
|
}
|
|
// some comment
|