Skip to content

Commit 2e4459b

Browse files
committed
Update {js,py}/vimlparser.{js,py}
1 parent 41387aa commit 2e4459b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

js/vimlparser.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,10 @@ VimLParser.prototype.parse_command_modifiers = function() {
769769
// noa\%[utocmd]
770770
viml_add(modifiers, {"name":"noautocmd"});
771771
}
772+
else if (viml_stridx("noswapfile", k) == 0 && viml_len(k) >= 3) {
773+
// :nos\%[wapfile]
774+
viml_add(modifiers, {"name":"noswapfile"});
775+
}
772776
else if (viml_stridx("rightbelow", k) == 0 && viml_len(k) >= 6) {
773777
//rightb\%[elow]
774778
viml_add(modifiers, {"name":"rightbelow"});

py/vimlparser.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,6 +662,9 @@ def parse_command_modifiers(self):
662662
elif viml_stridx("noautocmd", k) == 0 and viml_len(k) >= 3:
663663
# noa\%[utocmd]
664664
viml_add(modifiers, AttributeDict({"name":"noautocmd"}))
665+
elif viml_stridx("noswapfile", k) == 0 and viml_len(k) >= 3:
666+
# :nos\%[wapfile]
667+
viml_add(modifiers, AttributeDict({"name":"noswapfile"}))
665668
elif viml_stridx("rightbelow", k) == 0 and viml_len(k) >= 6:
666669
#rightb\%[elow]
667670
viml_add(modifiers, AttributeDict({"name":"rightbelow"}))

0 commit comments

Comments
 (0)