Skip to content

Commit

Permalink
Auto minify
Browse files Browse the repository at this point in the history
  • Loading branch information
speed-highlight-bot committed Sep 10, 2024
1 parent 3237420 commit 11aeddf
Show file tree
Hide file tree
Showing 118 changed files with 139 additions and 43 deletions.
1 change: 1 addition & 0 deletions dist/common.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var t={num:{type:"num",match:/(\.e?|\b)\d(e-|[\d.oxa-fA-F_])*(\.|\b)/g},str:{type:"str",match:/(["'])(\\[^]|(?!\1)[^\r\n\\])*\1?/g},strDouble:{type:"str",match:/"((?!")[^\r\n\\]|\\[^])*"?/g}};export{t as default};
2 changes: 1 addition & 1 deletion dist/detect.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export function detectLanguage(code: string): ShjLanguage;
export type ShjLanguage = import('./index.js').ShjLanguage;
export type ShjLanguage = import("./index.js").ShjLanguage;
//# sourceMappingURL=detect.d.ts.map
1 change: 1 addition & 0 deletions dist/detect.js

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

8 changes: 4 additions & 4 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ export function loadLanguage(languageName: string, language: {
/**
* Default languages supported
*/
export type ShjLanguage = ('asm' | 'bash' | 'bf' | 'c' | 'css' | 'csv' | 'diff' | 'docker' | 'git' | 'go' | 'html' | 'http' | 'ini' | 'java' | 'js' | 'jsdoc' | 'json' | 'leanpub-md' | 'log' | 'lua' | 'make' | 'md' | 'pl' | 'plain' | 'py' | 'regex' | 'rs' | 'sql' | 'todo' | 'toml' | 'ts' | 'uri' | 'xml' | 'yaml');
export type ShjLanguage = ("asm" | "bash" | "bf" | "c" | "css" | "csv" | "diff" | "docker" | "git" | "go" | "html" | "http" | "ini" | "java" | "js" | "jsdoc" | "json" | "leanpub-md" | "log" | "lua" | "make" | "md" | "pl" | "plain" | "py" | "regex" | "rs" | "sql" | "todo" | "toml" | "ts" | "uri" | "xml" | "yaml");
/**
* Themes supported in the browser
*/
export type ShjBrowserTheme = ('atom-dark' | 'github-dark' | 'github-dim' | 'dark' | 'default' | 'github-light' | 'visual-studio-dark');
export type ShjBrowserTheme = ("atom-dark" | "github-dark" | "github-dim" | "dark" | "default" | "github-light" | "visual-studio-dark");
export type ShjOptions = {
/**
* Indicates whether to hide line numbers
Expand All @@ -58,11 +58,11 @@ export type ShjOptions = {
* * `oneline` inside `div` element and containing only one line
* * `multiline` inside `div` element
*/
export type ShjDisplayMode = ('inline' | 'oneline' | 'multiline');
export type ShjDisplayMode = ("inline" | "oneline" | "multiline");
/**
* Token types
*/
export type ShjToken = ('deleted' | 'err' | 'var' | 'section' | 'kwd' | 'class' | 'cmnt' | 'insert' | 'type' | 'func' | 'bool' | 'num' | 'oper' | 'str' | 'esc');
export type ShjToken = ("deleted" | "err" | "var" | "section" | "kwd" | "class" | "cmnt" | "insert" | "type" | "func" | "bool" | "num" | "oper" | "str" | "esc");
export type ShjLanguageComponent = {
match: RegExp;
type: string;
Expand Down
2 changes: 1 addition & 1 deletion dist/index.d.ts.map

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

4 changes: 4 additions & 0 deletions dist/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/languages/asm.js

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

1 change: 1 addition & 0 deletions dist/languages/bash.js

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

1 change: 1 addition & 0 deletions dist/languages/bf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var t=[{match:/[^\[\->+.<\]\s].*/g,sub:"todo"},{type:"func",match:/\.+/g},{type:"kwd",match:/[<>]+/g},{type:"oper",match:/[+-]+/g}];export{t as default};
1 change: 1 addition & 0 deletions dist/languages/c.js

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

1 change: 1 addition & 0 deletions dist/languages/css.js

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

1 change: 1 addition & 0 deletions dist/languages/csv.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var e=[{expand:"strDouble"},{type:"oper",match:/,/g}];export{e as default};
1 change: 1 addition & 0 deletions dist/languages/diff.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var t=[{type:"deleted",match:/^[-<].*/gm},{type:"insert",match:/^[+>].*/gm},{type:"kwd",match:/!.*/gm},{type:"section",match:/^@@.*@@$|^\d.*|^([*-+])\1\1.*/gm}];export{t as default};
1 change: 1 addition & 0 deletions dist/languages/docker.js

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

1 change: 1 addition & 0 deletions dist/languages/git.js

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

1 change: 1 addition & 0 deletions dist/languages/go.js

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

1 change: 1 addition & 0 deletions dist/languages/html.js

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

2 changes: 1 addition & 1 deletion dist/languages/http.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ declare const _default: ({
sub?: undefined;
} | {
match: RegExp;
sub: (code: string) => import("../index.js").ShjLanguage;
sub: (code: string) => ShjLanguage;
type?: undefined;
expand?: undefined;
})[];
Expand Down
1 change: 1 addition & 0 deletions dist/languages/http.js

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

1 change: 1 addition & 0 deletions dist/languages/ini.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var t=[{match:/(^[ \f\t\v]*)[#;].*/gm,sub:"todo"},{type:"str",match:/.*/g},{type:"var",match:/.*(?==)/g},{type:"section",match:/^\s*\[.+\]\s*$/gm},{type:"oper",match:/=/g}];export{t as default};
1 change: 1 addition & 0 deletions dist/languages/java.js

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

1 change: 1 addition & 0 deletions dist/languages/js.js

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

1 change: 1 addition & 0 deletions dist/languages/js_template_literals.js

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

1 change: 1 addition & 0 deletions dist/languages/jsdoc.js

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

1 change: 1 addition & 0 deletions dist/languages/json.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var t=[{type:"var",match:/("|')?[a-zA-Z]\w*\1(?=\s*:)/g},{expand:"str"},{expand:"num"},{type:"num",match:/\bnull\b/g},{type:"bool",match:/\b(true|false)\b/g}];export{t as default};
2 changes: 1 addition & 1 deletion dist/languages/leanpub-md.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ declare const _default: ({
sub?: undefined;
} | {
match: RegExp;
sub: (code: string) => import("../index.js").ShjLanguage;
sub: (code: string) => ShjLanguage;
type?: undefined;
})[];
})[];
Expand Down
2 changes: 2 additions & 0 deletions dist/languages/leanpub-md.js

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

1 change: 1 addition & 0 deletions dist/languages/log.js

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

Loading

0 comments on commit 11aeddf

Please sign in to comment.