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

JS: function-assigned-to-variable unnecessary space after `function` #260

Open hyrious opened 3 years ago

hyrious commented 3 years ago
const g = function (){}
//    ^ entity.name.function.js.fjsx15
const h = function() {}
//    ^ variable.other.readwrite.js.fjsx15

https://github.com/borela/naomi/blob/68b4f0bd555ab98d370a9d27e4b4df675b4813c8/syntaxes/fjsx15/variable.sublime-syntax#L183

-          function\s
+          function\b