jekyll-vrml 2.2.1 → 2.2.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16715d7f6730ac00099b41a3d2af36751a981aecccb2e08ac9d4ae5559d195d0
4
- data.tar.gz: 32de3675c110cbd64f4f106872cc9cb2228fa514bf161c4ded5dff9929375758
3
+ metadata.gz: 564e4dc9f131b3e225ebeda92920461da836408757ad4c673b8471a77565f131
4
+ data.tar.gz: 02a1a3217f005fe457f5956ce318eb3b8711aa399af857a88637ed4569a57440
5
5
  SHA512:
6
- metadata.gz: 2b32397a4913558135ef19705c6a539956b1652f94f2b0dc64262e588500ff14c447268c4b266a50b1ca09f835d58041ed2fd05d57e9ee7d02635304b33d3406
7
- data.tar.gz: 0cd77704d8d145150f73a706350be01f0c7f457f1d6f8265a280616d91ac46e360651692c341ced9b51fc77941a3389412497341805c49914ccb9339b5e7bd17
6
+ metadata.gz: d8ccf557ef1affc6f1be9974be7eee0d7eab7849ea658bb5040de88ea1a3da48d8f43c40e6a1257bc3f6553ab3a11a1ff7e75a869043328628c33e0aba3119f9
7
+ data.tar.gz: ad89d9b8e9120c1512880d16f6548c8ef637d5a4ad698e50fbe9346839f2a5f7ee87ee8f74bba9981ef3ae95419f69696900ab57bb3ee503abbda1eb21bf865c
data/README.md CHANGED
@@ -42,5 +42,6 @@ Transform {
42
42
 
43
43
  ## See Also
44
44
 
45
+ * [jekyll-x3d](https://github.com/create3000/jekyll-x3d)
45
46
  * [X_ITE X3D Browser](https://create3000.github.io/x_ite/)
46
47
  * [web3d.org](https://www.web3d.org)
@@ -0,0 +1,6 @@
1
+ #!/bin/sh
2
+
3
+ git checkout main
4
+ git merge development
5
+ git push origin
6
+ git checkout development
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JekyllVrml
4
- VERSION = "2.2.1"
4
+ VERSION = "2.2.2"
5
5
  end
data/lib/jekyll-vrml.rb CHANGED
@@ -31,6 +31,7 @@ Jekyll::Hooks.register :site, :pre_render do |site|
31
31
 
32
32
  state :comments_and_whitespace do
33
33
  rule %r/[\x20\n,\t\r]+/, Text
34
+ rule %r/#\/\*/, Comment::Single, :multilineComment
34
35
  rule %r/#.*?$/, Comment::Single
35
36
  end
36
37
 
@@ -39,10 +40,10 @@ Jekyll::Hooks.register :site, :pre_render do |site|
39
40
  state :root do
40
41
  rule %r/[,:.]/, Punctuation
41
42
  rule %r/[{}\[\]]/, Punctuation
42
- rule %r/PROTO|EXTERNPROTO/, Keyword, :typeName
43
- rule %r/DEF|USE|ROUTE|TO|EXPORT|AS/, Keyword, :name
43
+ rule %r/\b(?:PROTO|EXTERNPROTO)\b/, Keyword, :typeName
44
+ rule %r/\b(?:DEF|USE|ROUTE|TO|EXPORT|AS)\b/, Keyword, :name
44
45
 
45
- rule %r/(IMPORT)(\s*)(#{id})(\s*)(.)(\s*)(#{id})/ do
46
+ rule %r/\b(IMPORT)(\s*)(#{id})(\s*)(.)(\s*)(#{id})/ do
46
47
  groups Keyword, Text, Str::Regex, Text, Punctuation, Text, Str::Regex
47
48
  end
48
49
 
@@ -52,8 +53,8 @@ Jekyll::Hooks.register :site, :pre_render do |site|
52
53
 
53
54
  # https://github.com/rouge-ruby/rouge/blob/master/lib/rouge/lexers/javascript.rb
54
55
 
55
- rule %r/TRUE|FALSE|NULL/, Keyword::Constant
56
- rule %r/SFBool|SFColor|SFColorRGBA|SFDouble|SFFloat|SFImage|SFInt32|SFMatrix3d|SFMatrix3f|SFMatrix4d|SFMatrix4f|VrmlMatrix|SFNode|SFRotation|SFString|SFTime|SFVec2d|SFVec2f|SFVec3d|SFVec3f|SFVec4d|SFVec4f|MFBool|MFColor|MFColorRGBA|MFDouble|MFFloat|MFImage|MFInt32|MFMatrix3d|MFMatrix3f|MFMatrix4d|MFMatrix4f|MFNode|MFRotation|MFString|MFTime|MFVec2d|MFVec2f|MFVec3d|MFVec3f|MFVec4d|MFVec4f/, Keyword::Declaration
56
+ rule %r/\b(?:TRUE|FALSE|NULL)\b/, Keyword::Constant
57
+ rule %r/\b(?:SFBool|SFColor|SFColorRGBA|SFDouble|SFFloat|SFImage|SFInt32|SFMatrix3d|SFMatrix3f|SFMatrix4d|SFMatrix4f|VrmlMatrix|SFNode|SFRotation|SFString|SFTime|SFVec2d|SFVec2f|SFVec3d|SFVec3f|SFVec4d|SFVec4f|MFBool|MFColor|MFColorRGBA|MFDouble|MFFloat|MFImage|MFInt32|MFMatrix3d|MFMatrix3f|MFMatrix4d|MFMatrix4f|MFNode|MFRotation|MFString|MFTime|MFVec2d|MFVec2f|MFVec3d|MFVec3f|MFVec4d|MFVec4f)\b/, Keyword::Declaration
57
58
 
58
59
  rule %r/#{id}(?=\s*\{)/, Name::Class # typeNames
59
60
  rule %r/#{id}/, Name::Attribute # fieldNames
@@ -76,12 +77,18 @@ Jekyll::Hooks.register :site, :pre_render do |site|
76
77
  rule %r/"/, Str::Delimiter, :dq
77
78
  end
78
79
 
80
+ state :multilineComment do
81
+ rule %r/[^*\/#]/, Comment::Single
82
+ rule %r/\*\/#/, Comment::Single, :pop!
83
+ rule %r/[*\/#]/, Comment::Single
84
+ end
85
+
79
86
  state :keywords do
80
- rule %r/PROFILE|COMPONENT|UNIT|META|DEF|USE|EXTERNPROTO|PROTO|IS|ROUTE|TO|IMPORT|EXPORT|AS/, Keyword
87
+ rule %r/\b(?:PROFILE|COMPONENT|UNIT|META|DEF|USE|EXTERNPROTO|PROTO|IS|ROUTE|TO|IMPORT|EXPORT|AS)\b/, Keyword
81
88
  end
82
89
 
83
90
  state :accessTypes do
84
- rule %r/initializeOnly|inputOnly|outputOnly|inputOutput|field|eventIn|eventOut|exposedField/, Keyword
91
+ rule %r/\b(?:initializeOnly|inputOnly|outputOnly|inputOutput|field|eventIn|eventOut|exposedField)\b/, Keyword
85
92
  end
86
93
 
87
94
  state :typeName do
data/package.json CHANGED
@@ -4,6 +4,7 @@
4
4
  "prebuild": "rm -f ./*.gem",
5
5
  "build": "gem build jekyll-vrml.gemspec",
6
6
  "try": "sudo gem install ./*.gem",
7
- "publish": "gem push ./*.gem"
7
+ "publish": "gem push ./*.gem",
8
+ "merge-development": "sh build/merge-development.sh"
8
9
  }
9
10
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-vrml
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Holger Seelig
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-12-06 00:00:00.000000000 Z
11
+ date: 2025-02-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Adds support for VRML syntax highlighting to Jekyll. This allows developers
14
14
  to easily integrate and display X3D content within their Jekyll-powered websites.
@@ -20,6 +20,7 @@ extra_rdoc_files: []
20
20
  files:
21
21
  - LICENSE.txt
22
22
  - README.md
23
+ - build/merge-development.sh
23
24
  - lib/jekyll-vrml.rb
24
25
  - lib/jekyll-vrml/version.rb
25
26
  - package.json