Skip to content
Permalink
Browse files
Smalltalk: Added boolean token (#3100)
  • Loading branch information
RunDevelopment committed Oct 5, 2021
1 parent 9fe2f93 commit 5138252468af69481dcab0eae3b1ab5e97dc90ee
Showing with 14 additions and 5 deletions.
  1. +2 −1 components/prism-smalltalk.js
  2. +1 −1 components/prism-smalltalk.min.js
  3. +8 −0 tests/languages/smalltalk/boolean_feature.test
  4. +3 −3 tests/languages/smalltalk/keyword_feature.test
@@ -21,7 +21,8 @@ Prism.languages.smalltalk = {
'punctuation': /\|/
}
},
'keyword': /\b(?:false|new|nil|self|super|true)\b/,
'keyword': /\b(?:new|nil|self|super)\b/,
'boolean': /\b(?:false|true)\b/,
'number': [
/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,
/\b\d+(?:\.\d+)?(?:e-?\d+)?/

Some generated files are not rendered by default. Learn more.

@@ -0,0 +1,8 @@
true false

----------------------------------------------------

[
["boolean", "true"],
["boolean", "false"]
]
@@ -1,13 +1,13 @@
nil true false
nil
self super new

----------------------------------------------------

[
["keyword", "nil"], ["keyword", "true"], ["keyword", "false"],
["keyword", "nil"],
["keyword", "self"], ["keyword", "super"], ["keyword", "new"]
]

----------------------------------------------------

Checks for keywords.
Checks for keywords.

0 comments on commit 5138252

Please sign in to comment.