mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vdoc: highlight .., ... as punctuation & postfix ops as operators (#13924)
This commit is contained in:
@@ -494,6 +494,11 @@ pub fn (kind Kind) is_infix() bool {
|
||||
.right_shift, .unsigned_right_shift, .arrow]
|
||||
}
|
||||
|
||||
[inline]
|
||||
pub fn (kind Kind) is_postfix() bool {
|
||||
return kind in [.inc, .dec, .question]
|
||||
}
|
||||
|
||||
pub fn kind_to_string(k Kind) string {
|
||||
return match k {
|
||||
.unknown { 'unknown' }
|
||||
|
||||
Reference in New Issue
Block a user