Last active
September 4, 2016 15:05
-
-
Save lierdakil/fb151ad1f2b1ca9fa5cc96a9ddb7190e to your computer and use it in GitHub Desktop.
Grammar with indentation blocks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fileTypes: [] | |
name: 'TestGrammar' | |
scopeName: 'source.test-grammar' | |
patterns: [ | |
{include: '#indent-block'} | |
] | |
repository: | |
'indent-block': { | |
name: 'indent-block.test-grammar' | |
begin: '^(\\s+)(?=\\S)' | |
end: '^(?!\\1\\s+)(?!\s*$)' | |
patterns: [ | |
{include: '$self'} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment