@rip-lang/print 1.1.112 → 1.1.113

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/hljs-rip.js +7 -0
  2. package/package.json +2 -2
package/hljs-rip.js CHANGED
@@ -163,6 +163,12 @@ export default function(hljs) {
163
163
  ],
164
164
  };
165
165
 
166
+ const MAP_LITERAL = {
167
+ className: 'operator',
168
+ begin: /\*(?=\{)/,
169
+ relevance: 5,
170
+ };
171
+
166
172
  const OPERATORS = {
167
173
  className: 'operator',
168
174
  begin: /\|>|::|:=|~=|~>|<=>|\.=|=!|!\?|\?!|=~|\?\?=|\?\?|\?\.|\.\.\.|\.\.|=>|->|\*\*|\/\/|%%|===|!==|==|!=|<=|>=|&&|\|\||[+\-*\/%&|^~<>=!?]/,
@@ -199,6 +205,7 @@ export default function(hljs) {
199
205
  INSTANCE_VAR,
200
206
  SIGIL_ATTR,
201
207
  TYPE_KEYWORDS,
208
+ MAP_LITERAL,
202
209
  OPERATORS,
203
210
  { // inline JS (backtick)
204
211
  className: 'string',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rip-lang/print",
3
- "version": "1.1.112",
3
+ "version": "1.1.113",
4
4
  "description": "Syntax-highlighted source code printer - highlight.js-powered, serves once, auto-opens browser",
5
5
  "type": "module",
6
6
  "main": "print.rip",
@@ -29,7 +29,7 @@
29
29
  "author": "Steve Shreeve <steve.shreeve@gmail.com>",
30
30
  "license": "MIT",
31
31
  "dependencies": {
32
- "rip-lang": ">=3.13.129",
32
+ "rip-lang": ">=3.13.130",
33
33
  "highlight.js": "^11.11.1"
34
34
  },
35
35
  "files": [