Skip to content

Commit

Permalink
Promoted out to normal keyword, made Natural capitalized, removed key…
Browse files Browse the repository at this point in the history
…words no longer in the manual (nim-lang#106)
  • Loading branch information
hlaaf authored and Varriount committed Nov 3, 2018
1 parent 0f563f5 commit fd41341
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Syntaxes/Nim.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ patterns:

- comment: Other keywords.
name: keyword.other.nim
match: ((?<![\w\x{80}-\x{10FFFF}])(addr|as|atomic|bind|cast|concept|const|converter|defer|discard|distinct|div|enum|export|from|import|include|let|mixin|object|of|ptr|ref|shl|shr|static|type|using|var)(?![\w\x{80}-\x{10FFFF}]))
match: ((?<![\w\x{80}-\x{10FFFF}])(addr|as|bind|cast|concept|const|converter|defer|discard|distinct|div|enum|export|from|import|include|let|mixin|object|of|out|ptr|ref|shl|shr|static|type|using|var)(?![\w\x{80}-\x{10FFFF}]))

- comment: Generic operators for expressions.
name: keyword.operator.nim
Expand Down Expand Up @@ -230,7 +230,7 @@ patterns:

- comment: Invalid and unused keywords.
name: keyword.invalid.nim
match: ((?<![\w\x{80}-\x{10FFFF}])(generic|interface|lambda|out|shared|with|without)(?![\w\x{80}-\x{10FFFF}]))
match: ((?<![\w\x{80}-\x{10FFFF}])(interface)(?![\w\x{80}-\x{10FFFF}]))

- comment: Common functions
name: keyword.other.common.function.nim
Expand All @@ -242,7 +242,7 @@ patterns:

- comment: Built-in, generic types.
name: storage.type.generic.nim
match: (?<![\w\x{80}-\x{10FFFF}])(range|array|seq|tuple|natural|set|ref|ptr|pointer)(?![\w\x{80}-\x{10FFFF}])
match: (?<![\w\x{80}-\x{10FFFF}])(range|array|seq|tuple|Natural|set|ref|ptr|pointer)(?![\w\x{80}-\x{10FFFF}])

- comment: Function types
name: storage.type.function.nim
Expand Down
6 changes: 3 additions & 3 deletions Syntaxes/Nim.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@
<key>comment</key>
<string>Other keywords.</string>
<key>match</key>
<string>((?&lt;![\w\x{80}-\x{10FFFF}])(addr|as|atomic|bind|cast|concept|const|converter|defer|discard|distinct|div|enum|export|from|import|include|let|mixin|object|of|ptr|ref|shl|shr|static|type|using|var)(?![\w\x{80}-\x{10FFFF}]))</string>
<string>((?&lt;![\w\x{80}-\x{10FFFF}])(addr|as|bind|cast|concept|const|converter|defer|discard|distinct|div|enum|export|from|import|include|let|mixin|object|of|out|ptr|ref|shl|shr|static|type|using|var)(?![\w\x{80}-\x{10FFFF}]))</string>
<key>name</key>
<string>keyword.other.nim</string>
</dict>
Expand Down Expand Up @@ -629,7 +629,7 @@
<key>comment</key>
<string>Invalid and unused keywords.</string>
<key>match</key>
<string>((?&lt;![\w\x{80}-\x{10FFFF}])(generic|interface|lambda|out|shared|with|without)(?![\w\x{80}-\x{10FFFF}]))</string>
<string>((?&lt;![\w\x{80}-\x{10FFFF}])(interface)(?![\w\x{80}-\x{10FFFF}]))</string>
<key>name</key>
<string>keyword.invalid.nim</string>
</dict>
Expand All @@ -653,7 +653,7 @@
<key>comment</key>
<string>Built-in, generic types.</string>
<key>match</key>
<string>(?&lt;![\w\x{80}-\x{10FFFF}])(range|array|seq|tuple|natural|set|ref|ptr|pointer)(?![\w\x{80}-\x{10FFFF}])</string>
<string>(?&lt;![\w\x{80}-\x{10FFFF}])(range|array|seq|tuple|Natural|set|ref|ptr|pointer)(?![\w\x{80}-\x{10FFFF}])</string>
<key>name</key>
<string>storage.type.generic.nim</string>
</dict>
Expand Down

0 comments on commit fd41341

Please sign in to comment.