mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v.ctags: improve detection of mut x :=
This commit is contained in:
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
Block a user