borela / naomi

Sublime Text enhanced syntax highlighting for JavaScript ES6/ES7/ES2015/ES2016/ES2017+, Babel, FlowType, React JSX, Styled Components, HTML5, SCSS3, PHP 7, phpDoc, PHPUnit, MQL4. Basic: Git config files.
Other
557 stars 20 forks source link

flow comment type break newline #259

Open hyrious opened 3 years ago

hyrious commented 3 years ago

For example,

example

I found this because some rmmv scripts use it to tell the game maker information.

For now, it has a simple workaround: only allow /*: comments to appear in oneline.

Change this line: https://github.com/borela/naomi/blob/68b4f0bd555ab98d370a9d27e4b4df675b4813c8/syntaxes/flow1/comment.sublime-syntax#L24 To:

-    - match: /\*(?=\s*:)
+    - match: /\*(?=\s*:.*\*/)