From 2da55a09042047ef9ecd8cafd5c1ed97d216ba29 Mon Sep 17 00:00:00 2001 From: Charly Delay Date: Tue, 26 Jan 2016 17:36:05 +0100 Subject: [PATCH] highlight.js: support v9.1.0 * expose hljs.COMMENT() * IModeBase.begin and IModeBase.end accept types string and RegExp --- highlightjs/highlightjs.d.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/highlightjs/highlightjs.d.ts b/highlightjs/highlightjs.d.ts index 8a0eceab5..5d6f89c71 100644 --- a/highlightjs/highlightjs.d.ts +++ b/highlightjs/highlightjs.d.ts @@ -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 , Jeremy Hull // 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;