v.ctags: improve detection of `mut x :=`
parent
b0c710c985
commit
87813e84e9
|
@ -31,7 +31,7 @@
|
|||
--regex-V=/^[[:blank:]]*\}[[:blank:]]*$//{scope=pop}{placeholder}
|
||||
|
||||
## Variables:
|
||||
--regex-V=/^[[:blank:]]*(mut[[:blank:]]*)([a-zA-Z_][0-9a-zA-Z_]+)[[:blank:]]*:=/\2/v/{scope=ref}
|
||||
--regex-V=/^[[:blank:]]*(mut[[:blank:]]+)?([a-zA-Z_][0-9a-zA-Z_]+)[[:blank:]]*:=/\2/v/
|
||||
|
||||
## Consts:
|
||||
--regex-V=/^(pub)?[[:blank:]]*const[[:blank:]]+\([[:blank:]]*/const/c/{scope=push}
|
||||
|
|
Loading…
Reference in New Issue