about summary refs log tree commit diff stats
path: root/src/js/regex.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-04-16 15:08:44 +0200
committerbptato <nincsnevem662@gmail.com>2024-04-17 23:19:09 +0200
commit66b9574b165be62e76c7397cf0eaa8d229d42675 (patch)
treeadb8a9719cc70f2b577706aaa4e30bb0d5d629a6 /src/js/regex.nim
parentd86f1939204eee771a30f47e4cbe71fd8d9a4f5f (diff)
downloadchawan-66b9574b165be62e76c7397cf0eaa8d229d42675.tar.gz
Update code style
* separate params with ; (semicolon) instead of , (colon)
* reduce screaming snake case use
* wrap long lines
Diffstat (limited to 'src/js/regex.nim')
-rw-r--r--src/js/regex.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/regex.nim b/src/js/regex.nim
index e189b430..f24633d1 100644
--- a/src/js/regex.nim
+++ b/src/js/regex.nim
@@ -49,7 +49,7 @@ proc compileRegex*(buf: string; flags: LREFlags = {}): Result[Regex, string] =
   )
   return ok(regex)
 
-func countBackslashes(buf: string, i: int): int =
+func countBackslashes(buf: string; i: int): int =
   var j = 0
   for i in countdown(i, 0):
     if buf[i] != '\\':