Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15331633
D7338.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D7338.diff
View Options
Index: src/markup/engine/__tests__/remarkup/interpreter-test.txt
===================================================================
--- src/markup/engine/__tests__/remarkup/interpreter-test.txt
+++ src/markup/engine/__tests__/remarkup/interpreter-test.txt
@@ -7,6 +7,8 @@
phutil_test_block_interpreter {{{ content }}}
+phutil_test_block_interpreter(x=y){{{content}}}
+
phutil_fake_test_block_interpreter {{{ content }}}
~~~~~~~~~~
Content: (content)
@@ -25,6 +27,11 @@
+Content: (content)
+Argv: (x=y)
+
+
+
<div class="remarkup-interpreter-error">No interpreter found: phutil_fake_test_block_interpreter</div>
~~~~~~~~~~
Content: (content)
@@ -43,4 +50,9 @@
+Content: (content)
+Argv: (x=y)
+
+
+
(No interpreter found: phutil_fake_test_block_interpreter)
Index: src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupInterpreterRule.php
===================================================================
--- src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupInterpreterRule.php
+++ src/markup/engine/remarkup/blockrule/PhutilRemarkupEngineRemarkupInterpreterRule.php
@@ -6,7 +6,7 @@
final class PhutilRemarkupEngineRemarkupInterpreterRule
extends PhutilRemarkupEngineBlockRule {
- const START_BLOCK_PATTERN = '/^([\w]+)\s(?:\(([^)]+)\)\s)?{{{/';
+ const START_BLOCK_PATTERN = '/^([\w]+)\s*(?:\(([^)]+)\)\s*)?{{{/';
const END_BLOCK_PATTERN = '/}}}\s*$/';
public function getMatchingLineCount(array $lines, $cursor) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 8, 12:07 PM (4 d, 10 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7318955
Default Alt Text
D7338.diff (1 KB)
Attached To
Mode
D7338: Be more liberal about whitespace in the "interpreter block" rule
Attached
Detach File
Event Timeline
Log In to Comment