remove spaces between an identifier and a star (#19355)

It makes search easier by searching `+`* instead of `+` which filter lots of unexported versions.

Follow https://github.com/nim-lang/Nim/pull/18681
This commit is contained in:
flywind 2022-01-10 18:59:44 +08:00 • committed by GitHub
commit bcbeff3632
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -163,28 +163,28 @@ macro jsFromAst*(n: untyped): untyped =
proc `&`*(a, b: cstring): cstring {.importjs: "(# + #)".} proc `&`*(a, b: cstring): cstring {.importjs: "(# + #)".}
## Concatenation operator for JavaScript strings. ## Concatenation operator for JavaScript strings.
proc `+` *(x, y: JsObject): JsObject {.importjs: "(# + #)".} proc `+`*(x, y: JsObject): JsObject {.importjs: "(# + #)".}
proc `-` *(x, y: JsObject): JsObject {.importjs: "(# - #)".} proc `-`*(x, y: JsObject): JsObject {.importjs: "(# - #)".}
proc `*` *(x, y: JsObject): JsObject {.importjs: "(# * #)".} proc `*`*(x, y: JsObject): JsObject {.importjs: "(# * #)".}
proc `/` *(x, y: JsObject): JsObject {.importjs: "(# / #)".} proc `/`*(x, y: JsObject): JsObject {.importjs: "(# / #)".}
proc `%` *(x, y: JsObject): JsObject {.importjs: "(# % #)".} proc `%`*(x, y: JsObject): JsObject {.importjs: "(# % #)".}
proc `+=` *(x, y: JsObject): JsObject {.importjs: "(# += #)", discardable.} proc `+=`*(x, y: JsObject): JsObject {.importjs: "(# += #)", discardable.}
proc `-=` *(x, y: JsObject): JsObject {.importjs: "(# -= #)", discardable.} proc `-=`*(x, y: JsObject): JsObject {.importjs: "(# -= #)", discardable.}
proc `*=` *(x, y: JsObject): JsObject {.importjs: "(# *= #)", discardable.} proc `*=`*(x, y: JsObject): JsObject {.importjs: "(# *= #)", discardable.}
proc `/=` *(x, y: JsObject): JsObject {.importjs: "(# /= #)", discardable.} proc `/=`*(x, y: JsObject): JsObject {.importjs: "(# /= #)", discardable.}
proc `%=` *(x, y: JsObject): JsObject {.importjs: "(# %= #)", discardable.} proc `%=`*(x, y: JsObject): JsObject {.importjs: "(# %= #)", discardable.}
proc `++` *(x: JsObject): JsObject {.importjs: "(++#)".} proc `++`*(x: JsObject): JsObject {.importjs: "(++#)".}
proc `--` *(x: JsObject): JsObject {.importjs: "(--#)".} proc `--`*(x: JsObject): JsObject {.importjs: "(--#)".}
proc `>` *(x, y: JsObject): JsObject {.importjs: "(# > #)".} proc `>`*(x, y: JsObject): JsObject {.importjs: "(# > #)".}
proc `<` *(x, y: JsObject): JsObject {.importjs: "(# < #)".} proc `<`*(x, y: JsObject): JsObject {.importjs: "(# < #)".}
proc `>=` *(x, y: JsObject): JsObject {.importjs: "(# >= #)".} proc `>=`*(x, y: JsObject): JsObject {.importjs: "(# >= #)".}
proc `<=` *(x, y: JsObject): JsObject {.importjs: "(# <= #)".} proc `<=`*(x, y: JsObject): JsObject {.importjs: "(# <= #)".}
proc `**` *(x, y: JsObject): JsObject {.importjs: "((#) ** #)".} proc `**`*(x, y: JsObject): JsObject {.importjs: "((#) ** #)".}
# (#) needed, refs https://github.com/nim-lang/Nim/pull/16409#issuecomment-760550812 # (#) needed, refs https://github.com/nim-lang/Nim/pull/16409#issuecomment-760550812
proc `and`*(x, y: JsObject): JsObject {.importjs: "(# && #)".} proc `and`*(x, y: JsObject): JsObject {.importjs: "(# && #)".}
proc `or` *(x, y: JsObject): JsObject {.importjs: "(# || #)".} proc `or`*(x, y: JsObject): JsObject {.importjs: "(# || #)".}
proc `not`*(x: JsObject): JsObject {.importjs: "(!#)".} proc `not`*(x: JsObject): JsObject {.importjs: "(!#)".}
proc `in` *(x, y: JsObject): JsObject {.importjs: "(# in #)".} proc `in`*(x, y: JsObject): JsObject {.importjs: "(# in #)".}
proc `[]`*(obj: JsObject, field: cstring): JsObject {.importjs: getImpl.} proc `[]`*(obj: JsObject, field: cstring): JsObject {.importjs: getImpl.}
## Returns the value of a property of name `field` from a JsObject `obj`. ## Returns the value of a property of name `field` from a JsObject `obj`.