-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Rebase changes from 25c64d1 v1.17.4
- Loading branch information
Showing
6 changed files
with
40 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
let s:save_cpo = &cpoptions | ||
set cpoptions&vim | ||
|
||
" A callback function being called after the tokens have been extracted. This | ||
" function will adjust the input if needed. | ||
function! doge#preprocessors#javascript#tokens(tokens) abort | ||
if has_key(a:tokens, 'returnType') | ||
if a:tokens['returnType'] ==# 'void' | ||
let a:tokens['returnType'] = '' | ||
elseif a:tokens['returnType'] ==# '' | ||
let a:tokens['returnType'] = '!type' | ||
endif | ||
endif | ||
endfunction | ||
|
||
let &cpoptions = s:save_cpo | ||
unlet s:save_cpo |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
let s:save_cpo = &cpoptions | ||
set cpoptions&vim | ||
|
||
function! doge#preprocessors#typescript#tokens(tokens) abort | ||
if has_key(a:tokens, 'returnType') | ||
if a:tokens['returnType'] ==# 'void' | ||
let a:tokens['returnType'] = '' | ||
elseif a:tokens['returnType'] ==# '' | ||
let a:tokens['returnType'] = '!type' | ||
endif | ||
endif | ||
endfunction | ||
|
||
let &cpoptions = s:save_cpo | ||
unlet s:save_cpo |
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
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
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
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