mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-07 16:30:12 +08:00
highlight.js: support v9.1.0
* expose hljs.COMMENT() * IModeBase.begin and IModeBase.end accept types string and RegExp
This commit is contained in:
Vendored
+8
-3
@@ -1,4 +1,4 @@
|
||||
// Type definitions for highlight.js v8.2.0
|
||||
// Type definitions for highlight.js v9.1.0
|
||||
// Project: https://github.com/isagalaev/highlight.js
|
||||
// Definitions by: Niklas Mollenhauer <https://github.com/nikeee/>, Jeremy Hull <https://github.com/sourrust>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
@@ -35,6 +35,11 @@ declare module hljs
|
||||
|
||||
export function inherit(parent: Object, obj: Object): Object;
|
||||
|
||||
export function COMMENT(
|
||||
begin: (string|RegExp),
|
||||
end: (string|RegExp),
|
||||
inherits: IModeBase): IMode;
|
||||
|
||||
// Common regexps
|
||||
export var IDENT_RE: string;
|
||||
export var UNDERSCORE_IDENT_RE: string;
|
||||
@@ -111,8 +116,8 @@ declare module hljs
|
||||
{
|
||||
className?: string;
|
||||
aliases?: string[];
|
||||
begin?: string;
|
||||
end?: string;
|
||||
begin?: (string|RegExp);
|
||||
end?: (string|RegExp);
|
||||
case_insensitive?: boolean;
|
||||
beginKeyword?: string;
|
||||
endsWithParent?: boolean;
|
||||
|
||||
Reference in New Issue
Block a user