emacs-ess / ess-stata-mode

4 stars 5 forks source link

One-line comment highlighting not terminating #2

Closed BrendanHalpin closed 3 years ago

BrendanHalpin commented 3 years ago

Comments starting with "^// " correctly cause font-lock-comment-face to be applied, but it doesn't terminate at EOL. That is, comment-face continues until it hits " */" (or to EOB).

BrendanHalpin commented 3 years ago

Changing line 51 of ess-stata-mode.el to

(modify-syntax-entry ?\n "> b"  tbl)

fixes this.