Skip to content

Commit 9e219f1

Browse files
committed
moon_json: applications[css_prefix]
1 parent 582c849 commit 9e219f1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

src/moon_json/applications/css_prefix.cr

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,23 @@
1818
# -----------------------------------------------------------------------
1919

2020
module MoonScript
21+
class MoonJson
22+
class Parser
23+
def parse_application_css_prefix : String
24+
@parser.read_string
25+
rescue JSON::ParseException
26+
error! :application_css_prefix_invalid do
27+
block do
28+
text "The"
29+
bold "css-prefix field"
30+
text "of the"
31+
bold "application object"
32+
text "should be a string, but it's not:"
33+
end
34+
35+
snippet snippet_data
36+
end
37+
end
38+
end
39+
end
40+
end

0 commit comments

Comments
 (0)