Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Mark leading tabs as invalid

We do allow leading tabs when followed by a comment — the description of the Ninja language lack information about how comments are defined and it also lack info about this rule about indent having to be done with spaces, but it seems to be an oversight — grammar may need to be revised based on the actual implementation of Ninja.
  • Loading branch information...
commit 250e7af5bec9cd049bbff70f7ab3e2a06aa231ef 1 parent 59352b6
@sorbits sorbits authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 Syntaxes/Ninja.tmLanguage
View
6 Syntaxes/Ninja.tmLanguage
@@ -14,6 +14,12 @@
<array>
<dict>
<key>match</key>
+ <string>^\t+(?![#\t]).*\n?</string>
+ <key>name</key>
+ <string>invalid.illegal.tab-not-allowed-here.ninja</string>
+ </dict>
+ <dict>
+ <key>match</key>
<string>$[$: ]</string>
<key>name</key>
<string>constant.character.escape.ninja</string>
Please sign in to comment.
Something went wrong with that request. Please try again.