1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fmt: further fixes for string interpolation and builtin macros

This commit is contained in:
Uwe Krüger
2020-06-18 18:48:23 +02:00
committed by GitHub
parent f526754535
commit 3b6e66db0d
13 changed files with 90 additions and 32 deletions

View File

@@ -1,7 +1,5 @@
module util
import os
[inline]
pub fn is_name_char(c byte) bool {
return (c >= `a` && c <= `z`) || (c >= `A` && c <= `Z`) || c == `_`
@@ -43,7 +41,3 @@ pub fn good_type_name(s string) bool {
pub fn cescaped_path(s string) string {
return s.replace('\\', '\\\\')
}
pub fn is_fmt() bool {
return os.executable().contains('vfmt')
}