Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Allan Odgaard sorbits authored

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. +6 0 Syntaxes/Ninja.tmLanguage
6 Syntaxes/Ninja.tmLanguage
@@ -14,6 +14,12 @@
14 14 <array>
15 15 <dict>
16 16 <key>match</key>
  17 + <string>^\t+(?![#\t]).*\n?</string>
  18 + <key>name</key>
  19 + <string>invalid.illegal.tab-not-allowed-here.ninja</string>
  20 + </dict>
  21 + <dict>
  22 + <key>match</key>
17 23 <string>$[$: ]</string>
18 24 <key>name</key>
19 25 <string>constant.character.escape.ninja</string>

0 comments on commit 250e7af

Please sign in to comment.
Something went wrong with that request. Please try again.