Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
Fixed the inline R code regex. Followed the knitr.tmbundle inline syn…
Browse files Browse the repository at this point in the history
…tax (\Sexpr{r code})
  • Loading branch information
lcolladotor committed Feb 20, 2014
1 parent d842401 commit ae947ff
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Syntaxes/Markdown Redcarpet.tmLanguage
Expand Up @@ -683,23 +683,26 @@
</dict>
<key>code-inline-r</key>
<dict>
<key>captures</key>
<key>begin</key>
<string>(`[r|R][ ]+)</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.raw.markdown</string>
</dict>
<key>2</key>
<dict/>
<key>3</key>
</dict>
<key>end</key>
<string>(`)</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.raw.markdown</string>
</dict>
</dict>
<key>match</key>
<string>(`+)[r|R][ ]+([^`]|(?!(?&lt;!`)\1(?!`))`)*+(\1)</string>
<key>name</key>
<string>source.r.embedded.rmarkdown</string>
<key>patterns</key>
Expand Down

0 comments on commit ae947ff

Please sign in to comment.