mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: more default field fixes
This commit is contained in:
@@ -302,7 +302,7 @@ pub mut:
|
||||
|
||||
// char classes storage
|
||||
cc []CharClass // char class list
|
||||
cc_index int = 0 // index
|
||||
cc_index int // index
|
||||
|
||||
// state index
|
||||
state_stack_index int= -1
|
||||
@@ -310,7 +310,7 @@ pub mut:
|
||||
|
||||
|
||||
// groups
|
||||
group_count int = 0 // number of groups in this regex struct
|
||||
group_count int // number of groups in this regex struct
|
||||
groups []int // groups index results
|
||||
group_max_nested int = 3 // max nested group
|
||||
group_max int = 8 // max allowed number of different groups
|
||||
@@ -321,10 +321,10 @@ pub mut:
|
||||
group_map map[string]int // groups names map
|
||||
|
||||
// flags
|
||||
flag int = 0 // flag for optional parameters
|
||||
flag int // flag for optional parameters
|
||||
|
||||
// Debug/log
|
||||
debug int = 0 // enable in order to have the unroll of the code 0 = NO_DEBUG, 1 = LIGHT 2 = VERBOSE
|
||||
debug int // enable in order to have the unroll of the code 0 = NO_DEBUG, 1 = LIGHT 2 = VERBOSE
|
||||
log_func FnLog = simple_log // log function, can be customized by the user
|
||||
query string = "" // query string
|
||||
}
|
||||
|
@@ -8,8 +8,8 @@ import regex
|
||||
struct TestItem {
|
||||
src string
|
||||
q string
|
||||
s int = 0
|
||||
e int = 0
|
||||
s int
|
||||
e int
|
||||
}
|
||||
|
||||
const(
|
||||
@@ -239,7 +239,7 @@ fn test_regex(){
|
||||
if res.len != to.r.len {
|
||||
println("ERROR: find_all, array of different size.")
|
||||
assert false
|
||||
continue
|
||||
continue
|
||||
}
|
||||
|
||||
for c1,i in res {
|
||||
@@ -268,7 +268,7 @@ fn test_regex(){
|
||||
println("ERROR: replace.")
|
||||
assert false
|
||||
continue
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// check match and find
|
||||
@@ -282,7 +282,7 @@ fn test_regex(){
|
||||
eprintln('err: $err')
|
||||
assert false
|
||||
continue
|
||||
}
|
||||
}
|
||||
// q_str := re.get_query()
|
||||
// println("Query: $q_str")
|
||||
start,end := re.find(to.src)
|
||||
|
Reference in New Issue
Block a user