X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=runtime%2Fsyntax%2Fsyntax_converter.go;h=037a4bd4aa48f6c7a41732bf09dae5ed3c6b1188;hb=54c23cae72d7237bc898a59f79aad0acffdf0ffe;hp=eef3861037f009127469c5250766d5b21eda3a67;hpb=12d74b99e8f044aa3c336700a84470c1e0987478;p=micro.git diff --git a/runtime/syntax/syntax_converter.go b/runtime/syntax/syntax_converter.go index eef38610..037a4bd4 100644 --- a/runtime/syntax/syntax_converter.go +++ b/runtime/syntax/syntax_converter.go @@ -24,7 +24,6 @@ type MultiRule struct { func JoinRule(rule string) string { split := strings.Split(rule, `" "`) joined := strings.Join(split, "|") - joined = joined return joined } @@ -105,11 +104,9 @@ func parseFile(text, filename string) (filetype, syntax, header string, rules [] var start string var end string // Use m and s flags by default - flags := "ms" if len(submatch) == 5 { // If len is 5 the user provided some additional flags color = string(submatch[1]) - flags += string(submatch[2]) start = string(submatch[3]) end = string(submatch[4]) } else if len(submatch) == 4 {