REditorSupport / atom-language-r

R syntax for Atom
https://atom.io/packages/atom-language-r
Other
31 stars 11 forks source link

Strings with curly braces in R markdown breaks highlighting #26

Open stefanocoretta opened 5 years ago

stefanocoretta commented 5 years ago

In a .Rmd document, if a chunk option has a string containing curly braces, highlighting breaks if the R Markdown grammar is selected. (Latest Atom version and atom-language-r version).

In the following example, the chunk option fig.cap is a string with a LaTeX command using curly braces (\\Cref{s:pilot}).

Screenshot 2019-05-13 at 12 54 15

If the closing brace is removed, highlighting is restored.

Screenshot 2019-05-13 at 12 54 28