Skip to content

Commit

Permalink
Fix formatting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
edukisto committed Mar 13, 2021
1 parent c30bd75 commit ad2b3d0
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 317 deletions.
6 changes: 3 additions & 3 deletions components/prism-false.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function (Prism) {
/**
* Implements.
* Based on the manual by Wouter van Oortmerssen.
*
* @see {@link https://github.com/PrismJS/prism/issues/2801#issue-829717504}
*/
Expand All @@ -21,11 +21,11 @@
alias: 'important'
},
'number': /\d+/,
'operator': /[-!#$%&'*+,./:;=>?@\\^_`|~\xdf\xf8]/,
'operator': /[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,
'punctuation': /\[|\]/,
'variable': /[a-z]/,
'non-standard': {
pattern: /[()<BDO\xae]/,
pattern: /[()<BDO®]/,
alias: 'bold'
}
};
Expand Down
2 changes: 1 addition & 1 deletion components/prism-false.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 2 additions & 8 deletions tests/languages/false/assembler_code_feature.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@
----------------------------------------------------

[
[
"assembler-code",
"0`"
],
[
"assembler-code",
"65535`"
]
["assembler-code", "0`"],
["assembler-code", "65535`"]
]

----------------------------------------------------
Expand Down
19 changes: 3 additions & 16 deletions tests/languages/false/character_code_feature.test
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,9 @@
----------------------------------------------------

[
[
"character-code",
"'\n"
],
[
"character-code",
"'\t"
],
[
"character-code",
"' "
],
[
"character-code",
"''"
]
["character-code", "'\n"], ["character-code", "'\t"],
["character-code", "' "],
["character-code", "''"]
]

----------------------------------------------------
Expand Down
45 changes: 8 additions & 37 deletions tests/languages/false/comment_feature.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,14 @@
----------------------------------------------------

[
[
"comment",
"{\n}"
],
[
"comment",
"{!#$%&'*+,-./:;=>?@[\\]^_`|~ßø}"
],
[
"comment",
"{\"\"}"
],
[
"comment",
"{foo}"
],
[
"comment",
"{{}"
],
[
"comment",
"{}"
],
[
"comment",
"{}"
],
[
"comment",
"{}"
],
[
"comment",
"{}"
],
"}"
["comment", "{\n}"],
["comment", "{!#$%&'*+,-./:;=>?@[\\]^_`|~ßø}"],
["comment", "{\"\"}"],
["comment", "{foo}"],
["comment", "{{}"],
["comment", "{}"],
["comment", "{}"], ["comment", "{}"],
["comment", "{}"], "}"
]

----------------------------------------------------
Expand Down
125 changes: 25 additions & 100 deletions tests/languages/false/operator_feature.test
Original file line number Diff line number Diff line change
Expand Up @@ -27,106 +27,31 @@ _
----------------------------------------------------

[
[
"operator",
"!"
],
[
"operator",
"#"
],
[
"operator",
"$"
],
[
"operator",
"%"
],
[
"operator",
"&"
],
[
"operator",
"*"
],
[
"operator",
"+"
],
[
"operator",
","
],
[
"operator",
"-"
],
[
"operator",
"."
],
[
"operator",
"/"
],
[
"operator",
":"
],
[
"operator",
";"
],
[
"operator",
"="
],
[
"operator",
">"
],
[
"operator",
"?"
],
[
"operator",
"@"
],
[
"operator",
"\\"
],
[
"operator",
"^"
],
[
"operator",
"_"
],
[
"operator",
"`"
],
[
"operator",
"|"
],
[
"operator",
"~"
],
[
"operator",
"ß"
],
[
"operator",
"ø"
]
["operator", "!"],
["operator", "#"],
["operator", "$"],
["operator", "%"],
["operator", "&"],
["operator", "*"],
["operator", "+"],
["operator", ","],
["operator", "-"],
["operator", "."],
["operator", "/"],
["operator", ":"],
["operator", ";"],
["operator", "="],
["operator", ">"],
["operator", "?"],
["operator", "@"],
["operator", "\\"],
["operator", "^"],
["operator", "_"],
["operator", "`"],
["operator", "|"],
["operator", "~"],
["operator", "ß"],
["operator", "ø"]
]

----------------------------------------------------
Expand Down
10 changes: 2 additions & 8 deletions tests/languages/false/punctuation_feature.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@
----------------------------------------------------

[
[
"punctuation",
"["
],
[
"punctuation",
"]"
]
["punctuation", "["],
["punctuation", "]"]
]

----------------------------------------------------
Expand Down
34 changes: 6 additions & 28 deletions tests/languages/false/string_feature.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,12 @@
----------------------------------------------------

[
[
"string",
"\"\n\""
],
[
"string",
"\"!#$%&'*+,-./:;=>?@[\\]^_`|~ßø\""
],
[
"string",
"\"\""
],
[
"string",
"\"\""
],
[
"string",
"\"\""
],
[
"string",
"\"foo\""
],
[
"string",
"\"{}\""
]
["string", "\"\n\""],
["string", "\"!#$%&'*+,-./:;=>?@[\\]^_`|~ßø\""],
["string", "\"\""],
["string", "\"\""], ["string", "\"\""],
["string", "\"foo\""],
["string", "\"{}\""]
]

----------------------------------------------------
Expand Down
Loading

0 comments on commit ad2b3d0

Please sign in to comment.