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:
@@ -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')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user