-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow highlighting of some empty expressions
Improved version of #1307 accounting for problems caused by empty expressions consisting of empty strings or whitespace only. Prevents highlight markup from being stripped from code that consists entirely of code comments (only lines beginning with #'s). A partial fix for #1296, but would still not syntax highlight code chunks that resulted in syntax errors (e.g., when knitr chunk options collapse = TRUE and comment = NA are set)
- Loading branch information
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters