Skip to content

Commit

Permalink
Merge branch 'main' of github.com:speed-highlight/core
Browse files Browse the repository at this point in the history
  • Loading branch information
matubu committed Jan 4, 2024
2 parents 2f9ed58 + 50ab990 commit 5edf2ea
Show file tree
Hide file tree
Showing 187 changed files with 1,555 additions and 41 deletions.
20 changes: 20 additions & 0 deletions dist/common.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
declare namespace _default {
namespace num {
let type: string;
let match: RegExp;
}
namespace str {
let type_1: string;
export { type_1 as type };
let match_1: RegExp;
export { match_1 as match };
}
namespace strDouble {
let type_2: string;
export { type_2 as type };
let match_2: RegExp;
export { match_2 as match };
}
}
export default _default;
//# sourceMappingURL=common.d.ts.map
1 change: 1 addition & 0 deletions dist/common.d.ts.map

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

1 change: 1 addition & 0 deletions dist/detect.d.ts.map

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

17 changes: 10 additions & 7 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@ export function highlightText(src: string, lang: ShjLanguage, multiline?: boolea
export function highlightElement(elm: Element, lang?: ShjLanguage, mode?: ShjDisplayMode, opt?: ShjOptions): Promise<void>;
export function highlightAll(opt?: ShjOptions): Promise<any>;
export function loadLanguage(languageName: string, language: ShjLanguage): void;
export type ShjToken = ('deleted' | 'err' | 'var' | 'section' | 'kwd' | 'class' | 'cmnt' | 'insert' | 'type' | 'func' | 'bool' | 'num' | 'oper' | 'str' | 'esc');
/**
* 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');
/**
* Themes supported in the browser
*/
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 @@ -51,11 +58,7 @@ export type ShjOptions = {
*/
export type ShjDisplayMode = ('inline' | 'oneline' | 'multiline');
/**
* Themes supported in the browser
* Token types
*/
export type ShjBrowserTheme = ('atom-dark' | 'github-dark' | 'github-dim' | 'dark' | 'default' | 'github-light' | 'visual-studio-dark');
/**
* 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 ShjToken = ('deleted' | 'err' | 'var' | 'section' | 'kwd' | 'class' | 'cmnt' | 'insert' | 'type' | 'func' | 'bool' | 'num' | 'oper' | 'str' | 'esc');
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions dist/index.d.ts.map

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

21 changes: 21 additions & 0 deletions dist/languages/asm.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
declare const _default: ({
type: string;
match: RegExp;
expand?: undefined;
sub?: undefined;
} | {
expand: string;
type?: undefined;
match?: undefined;
sub?: undefined;
} | {
type: string;
match: RegExp;
sub: {
type: string;
match: RegExp;
}[];
expand?: undefined;
})[];
export default _default;
//# sourceMappingURL=asm.d.ts.map
1 change: 1 addition & 0 deletions dist/languages/asm.d.ts.map

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

14 changes: 14 additions & 0 deletions dist/languages/bash.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
declare const _default: ({
type: string;
match: RegExp;
} | {
sub: string;
match: RegExp;
expand?: undefined;
} | {
expand: string;
sub?: undefined;
match?: undefined;
})[];
export default _default;
//# sourceMappingURL=bash.d.ts.map
1 change: 1 addition & 0 deletions dist/languages/bash.d.ts.map

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

11 changes: 11 additions & 0 deletions dist/languages/bf.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
declare const _default: ({
match: RegExp;
sub: string;
type?: undefined;
} | {
type: string;
match: RegExp;
sub?: undefined;
})[];
export default _default;
//# sourceMappingURL=bf.d.ts.map
1 change: 1 addition & 0 deletions dist/languages/bf.d.ts.map

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

39 changes: 39 additions & 0 deletions dist/languages/c.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
declare const _default: ({
match: RegExp;
sub: string;
expand?: undefined;
type?: undefined;
} | {
expand: string;
match?: undefined;
sub?: undefined;
type?: undefined;
} | {
type: string;
match: RegExp;
sub: {
type: string;
match: RegExp;
}[];
expand?: undefined;
} | {
match: RegExp;
sub: ({
type: string;
match: RegExp;
sub?: undefined;
} | {
match: RegExp;
sub: string;
type?: undefined;
})[];
expand?: undefined;
type?: undefined;
} | {
type: string;
match: RegExp;
sub?: undefined;
expand?: undefined;
})[];
export default _default;
//# sourceMappingURL=c.d.ts.map
1 change: 1 addition & 0 deletions dist/languages/c.d.ts.map

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

34 changes: 34 additions & 0 deletions dist/languages/css.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
declare const _default: ({
match: RegExp;
sub: string;
expand?: undefined;
type?: undefined;
} | {
expand: string;
match?: undefined;
sub?: undefined;
type?: undefined;
} | {
type: string;
match: RegExp;
sub?: undefined;
expand?: undefined;
} | {
type: string;
match: RegExp;
sub: {
type: string;
match: RegExp;
}[];
expand?: undefined;
} | {
match: RegExp;
sub: {
type: string;
match: RegExp;
}[];
expand?: undefined;
type?: undefined;
})[];
export default _default;
//# sourceMappingURL=css.d.ts.map
1 change: 1 addition & 0 deletions dist/languages/css.d.ts.map

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

11 changes: 11 additions & 0 deletions dist/languages/csv.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
declare const _default: ({
expand: string;
type?: undefined;
match?: undefined;
} | {
type: string;
match: RegExp;
expand?: undefined;
})[];
export default _default;
//# sourceMappingURL=csv.d.ts.map
1 change: 1 addition & 0 deletions dist/languages/csv.d.ts.map

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

6 changes: 6 additions & 0 deletions dist/languages/diff.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
declare const _default: {
type: string;
match: RegExp;
}[];
export default _default;
//# sourceMappingURL=diff.d.ts.map
1 change: 1 addition & 0 deletions dist/languages/diff.d.ts.map

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

14 changes: 14 additions & 0 deletions dist/languages/docker.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
declare const _default: ({
type: string;
match: RegExp;
} | {
sub: string;
match: RegExp;
expand?: undefined;
} | {
expand: string;
sub?: undefined;
match?: undefined;
})[];
export default _default;
//# sourceMappingURL=docker.d.ts.map
1 change: 1 addition & 0 deletions dist/languages/docker.d.ts.map

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

14 changes: 14 additions & 0 deletions dist/languages/git.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
declare const _default: ({
type: string;
match: RegExp;
} | {
match: RegExp;
sub: string;
expand?: undefined;
} | {
expand: string;
match?: undefined;
sub?: undefined;
})[];
export default _default;
//# sourceMappingURL=git.d.ts.map
1 change: 1 addition & 0 deletions dist/languages/git.d.ts.map

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

18 changes: 18 additions & 0 deletions dist/languages/go.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
declare const _default: ({
match: RegExp;
sub: string;
expand?: undefined;
type?: undefined;
} | {
expand: string;
match?: undefined;
sub?: undefined;
type?: undefined;
} | {
type: string;
match: RegExp;
sub?: undefined;
expand?: undefined;
})[];
export default _default;
//# sourceMappingURL=go.d.ts.map
1 change: 1 addition & 0 deletions dist/languages/go.d.ts.map

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

45 changes: 45 additions & 0 deletions dist/languages/html.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
declare const _default: ({
match: RegExp;
sub: ({
type: string;
match: RegExp;
sub: {
type: string;
match: RegExp;
}[];
} | {
type: string;
match: RegExp;
sub?: undefined;
})[];
} | {
match: RegExp;
sub: string;
type?: undefined;
} | {
type: string;
match: RegExp;
sub?: undefined;
} | {
match: RegExp;
sub: ({
match: RegExp;
sub: ({
type: string;
match: RegExp;
sub: {
type: string;
match: RegExp;
}[];
} | {
type: string;
match: RegExp;
sub?: undefined;
})[];
} | {
match: RegExp;
sub: string;
})[];
})[];
export default _default;
//# sourceMappingURL=html.d.ts.map
1 change: 1 addition & 0 deletions dist/languages/html.d.ts.map

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

18 changes: 18 additions & 0 deletions dist/languages/http.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
declare const _default: ({
type: string;
match: RegExp;
expand?: undefined;
sub?: undefined;
} | {
expand: string;
type?: undefined;
match?: undefined;
sub?: undefined;
} | {
match: RegExp;
sub: (code: string) => import("../index.js").ShjLanguage;
type?: undefined;
expand?: undefined;
})[];
export default _default;
//# sourceMappingURL=http.d.ts.map
1 change: 1 addition & 0 deletions dist/languages/http.d.ts.map

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

11 changes: 11 additions & 0 deletions dist/languages/ini.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
declare const _default: ({
match: RegExp;
sub: string;
type?: undefined;
} | {
type: string;
match: RegExp;
sub?: undefined;
})[];
export default _default;
//# sourceMappingURL=ini.d.ts.map
1 change: 1 addition & 0 deletions dist/languages/ini.d.ts.map

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

Loading

0 comments on commit 5edf2ea

Please sign in to comment.