andrewheiss / SublimeStataEnhanced

Plugin that adds support for Stata 11–15 for Sublime Text 2 and 3
56 stars 22 forks source link

Syntax highlighting of Stata comments #56

Open jdingel opened 5 years ago

jdingel commented 5 years ago

Stata's own do-file editor doesn't handle comments correctly when highlighting syntax. See https://www.statalist.org/forums/forum/general-stata-discussion/general/1448244-understanding-stata-s-comment-hierarchy. A package for Atom has addressed these issues: https://github.com/kylebarron/language-stata/blob/v1.7.3/examples/comments.md.

The simplest example of a comment that is not handled correctly by Stata Enhanced v2.2.4 for SublimeText 3 is the first example in the linked content.

 * /* This will be a multi-line comment
disp "Not printed"
*/