garbas / vim-snipmate

snipMate.vim aims to be a concise vim script that implements some of TextMate's snippets features in Vim.
www.vim.org/scripts/script.php?script_id=2540
2.01k stars 181 forks source link

fix: dont highlight space indentation as error #289

Closed rodhash closed 2 years ago

rodhash commented 2 years ago

Currently only TAB char was acceptable as a syntax compliant, this commits adds a space char too.

This allows non-TAB users to not be bothered by the error highlight

ps: For some reason \s seems to not work here so added a pure space instead of \s

ajzafar commented 2 years ago

Adjusting the syntax highlighting does not actually affect how SnipMate interprets .snippets files. It just changes how those files look when you're editing them in Vim. In short, spaces are still wrong, and this change makes them look right. As such I am going to decline to merge this.