Skip to content

Commit

Permalink
Merge pull request #90 from blueyed/delfunction
Browse files Browse the repository at this point in the history
delfunction: add BANG to flags
  • Loading branch information
tyru authored Sep 20, 2018
2 parents 1a1cc96 + f6ed831 commit 11d2bee
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autoload/vimlparser.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2076,7 +2076,7 @@ let s:VimLParser.builtin_commands = [
\ {'name': 'debug', 'minlen': 3, 'flags': 'NEEDARG|EXTRA|NOTRLCOM|SBOXOK|CMDWIN', 'parser': 'parse_cmd_common'},
\ {'name': 'debuggreedy', 'minlen': 6, 'flags': 'RANGE|NOTADR|ZEROR|TRLBAR|CMDWIN', 'parser': 'parse_cmd_common'},
\ {'name': 'delcommand', 'minlen': 4, 'flags': 'NEEDARG|WORD1|TRLBAR|CMDWIN', 'parser': 'parse_cmd_common'},
\ {'name': 'delfunction', 'minlen': 4, 'flags': 'NEEDARG|WORD1|CMDWIN', 'parser': 'parse_cmd_delfunction'},
\ {'name': 'delfunction', 'minlen': 4, 'flags': 'BANG|NEEDARG|WORD1|CMDWIN', 'parser': 'parse_cmd_delfunction'},
\ {'name': 'diffupdate', 'minlen': 3, 'flags': 'BANG|TRLBAR', 'parser': 'parse_cmd_common'},
\ {'name': 'diffget', 'minlen': 5, 'flags': 'RANGE|EXTRA|TRLBAR|MODIFY', 'parser': 'parse_cmd_common'},
\ {'name': 'diffoff', 'minlen': 5, 'flags': 'BANG|TRLBAR', 'parser': 'parse_cmd_common'},
Expand Down
2 changes: 1 addition & 1 deletion js/vimlparser.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion py/vimlparser.py

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions test/test_delfunction.ok
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
(delfunction F)
(delfunction F)
2 changes: 2 additions & 0 deletions test/test_delfunction.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
delfunction F
delfunction! F

0 comments on commit 11d2bee

Please sign in to comment.