Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
  • 4 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Commits on Dec 08, 2011
@LionelPanhaleux Correct raw block detection e42d333
@LionelPanhaleux ** is bold punctuation, not italic da51457
@LionelPanhaleux Correct inline link detection
Sone dashes and punctuation in the link name (before '<') are
authorized.
d5d0717
@LionelPanhaleux Correct comment block detection
Line beginning with three points is not a comment block. Only a blank
line ends the comment block
ff6bd4a
Showing with 8 additions and 13 deletions.
  1. +8 −13 Syntaxes/reStructuredText.plist
View
21 Syntaxes/reStructuredText.plist
@@ -93,15 +93,10 @@
</dict>
<dict>
<key>begin</key>
- <string>^([ \t]*).*?((::))</string>
+ <string>(::)\s*$</string>
<key>captures</key>
<dict>
- <key>2</key>
- <dict>
- <key>name</key>
- <string>markup.raw.restructuredtext</string>
- </dict>
- <key>3</key>
+ <key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.raw.restructuredtext</string>
@@ -110,7 +105,7 @@
<key>comment</key>
<string>verbatim blocks</string>
<key>end</key>
- <string>^(?=\1[^\s]+)</string>
+ <string>^(?!\s)</string>
<key>name</key>
<string>meta.raw.block.restructuredtext</string>
<key>patterns</key>
@@ -137,12 +132,12 @@
<key>1</key>
<dict>
<key>name</key>
- <string>punctuation.definition.italic.restructuredtext</string>
+ <string>punctuation.definition.bold.restructuredtext</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
- <string>punctuation.definition.italic.restructuredtext</string>
+ <string>punctuation.definition.bold.restructuredtext</string>
</dict>
</dict>
<key>comment</key>
@@ -309,7 +304,7 @@
<key>comment</key>
<string>links `...`_ </string>
<key>match</key>
- <string>(`)([\w\s]+)\s+(&lt;)(.*?)(&gt;)(`_)</string>
+ <string>(`)([^&lt;`]+)\s+(&lt;)(.*?)(&gt;)(`_)</string>
<key>name</key>
<string>meta.link.inline.restructuredtext</string>
</dict>
@@ -627,7 +622,7 @@
</dict>
<dict>
<key>begin</key>
- <string>^(\.\.)</string>
+ <string>^(\.\.)\s</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
@@ -639,7 +634,7 @@
<key>comment</key>
<string>comment</string>
<key>end</key>
- <string>$\n?</string>
+ <string>^[\s]*$\n?</string>
<key>name</key>
<string>comment.line.double-dot.restructuredtext</string>
</dict>

No commit comments for this range

Something went wrong with that request. Please try again.