File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,17 @@ import { Definition, Variant } from "./types.ts";
3
3
const denops = "https://deno.land/x/denops_core@v3.1.0/mod.ts" ;
4
4
5
5
const translate : Record < string , string > = {
6
+ "*config" : "config" ,
7
+ "*opts" : "opts" ,
6
8
"default" : "defaultValue" ,
7
9
"delete" : "delete_" ,
10
+ "end-col" : "end_col" ,
11
+ "end-lnum" : "end_lnum" ,
8
12
"eval" : "eval_" ,
9
- "function" : "function_" ,
10
- "lnum-end" : "lnum_end" ,
11
13
"fname-one" : "fname_one" ,
12
14
"fname-two" : "fname_two" ,
15
+ "function" : "function_" ,
16
+ "lnum-end" : "lnum_end" ,
13
17
} ;
14
18
15
19
function formatDocs ( docs : string ) : string [ ] {
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export function parse(content: string): Definition[] {
25
25
const e = content . lastIndexOf ( "\n" , me ) ;
26
26
const block = content
27
27
. substring ( s , e )
28
- . replaceAll ( / \* . + ?\* / g, "" ) // Remove tags
28
+ . replaceAll ( / \* \S + ?\* / g, "" ) // Remove tags
29
29
. replaceAll ( / \s + \n / g, "\n" ) // Remove trailing '\s'
30
30
. trim ( ) ;
31
31
definitions . push ( parseBlock ( fn , block ) ) ;
You can’t perform that action at this time.
0 commit comments