jekyll-vrml 2.2.1 → 2.2.3
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 +4 -4
- data/README.md +1 -0
- data/build/merge-development.sh +6 -0
- data/lib/jekyll-vrml/version.rb +1 -1
- data/lib/jekyll-vrml.rb +14 -7
- data/package.json +2 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '058e587892cca7d91e09cf14e065b5d6af6bd72f18341bc8b8035578e570bdce'
|
4
|
+
data.tar.gz: dad67ec570413e39351478cb1666c5230093772b6f23a80b9532e1e42b63af02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 306c0fdf0311c080971466710c6e79d62074ea8615a2034010084255a43aa10c7c8ace4bc435b04b7e60a751d3c5d65bd24f42cda065cd20d24ec30611425819
|
7
|
+
data.tar.gz: 63b92f7543e6b6c41d11a9f5bf2f9edf3406958cdd4ac6ba60385340781d46e5cc73fcc2decdbf6451c262d4f13bbc5744ab17b860dfd336ddaf8a68a9e3ae4b
|
data/README.md
CHANGED
data/lib/jekyll-vrml/version.rb
CHANGED
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::Multiline, :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
|
43
|
-
rule %r
|
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
|
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
|
56
|
-
rule %r
|
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::Multiline
|
82
|
+
rule %r/\*\/#/, Comment::Multiline, :pop!
|
83
|
+
rule %r/[*\/#]/, Comment::Multiline
|
84
|
+
end
|
85
|
+
|
79
86
|
state :keywords do
|
80
|
-
rule %r
|
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
|
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
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.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Holger Seelig
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
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
|