diff --git a/types/refractor/core.d.ts b/types/refractor/core.d.ts new file mode 100644 index 0000000000..d19dedbcc5 --- /dev/null +++ b/types/refractor/core.d.ts @@ -0,0 +1,145 @@ +import * as Prism from 'prismjs'; + +export interface RefractorSyntax { + displayName: string; + aliases: string[]; + (prism: typeof Prism): void; +} + +export namespace AST { + namespace Unist { + interface Node { + type: string; + } + + interface Parent extends Node { + children: RefractorNode[]; + } + + interface Text extends Node { + value: string; + } + } + + interface Properties { + className?: string[]; + [key: string]: any; + } + + interface Element extends Unist.Parent { + type: 'element'; + tagName: string; + properties: Properties; + } + + interface Text extends Unist.Text { + type: 'text'; + } +} + +export type RefractorNode = AST.Element | AST.Text; + +/** + * Register a syntax. Needed if you’re using refractor/core.js. + * + * ```ts + * import refractor = require('refractor/core') + * import markdown = require('refractor/lang/markdown') + * + * refractor.register(markdown) + * console.log(refractor.highlight('*Emphasis*', 'markdown')) + * + * // => [ { type: 'element', tagName: 'span', properties: [Object], children: [Array] } ] + * ``` + * + * @param syntax + */ +export function register(syntax: RefractorSyntax): void; + +/** + * Parse value (string) according to the language (name or alias) syntax. + * + * @returns Virtual nodes representing the highlighted value (Array.). + * + * ```ts + * import refractor = require('refractor/core') + * console.log(refractor.highlight('em { color: red }', 'css')) + * ``` + * + * Yields: + * + * ``` + * [ + * { type: 'element', + * tagName: 'span', + * properties: [Object], + * children: [Array] }, + * { type: 'text', value: ' ' }, + * // ... + * { type: 'text', value: ' red ' }, + * { type: 'element', + * tagName: 'span', + * properties: [Object], + * children: [Array] } + * ] + * ``` + */ +export function highlight(value: string, name: string): RefractorNode[]; + +/** + * Check if a language (name or alias) is registered. + * + * ```ts + * import refractor = require('refractor/core') + * import markdown = require('refractor/lang/markdown') + * + * console.log(registered('markdown')) + * + * register(markdown) + * + * console.log(registered('markdown')) + * + * // => true | false + * ``` + */ +export function registered(name: string): boolean; + +/** + * List all registered languages (names and aliases). + * + * ```ts + * import refractor = require('refractor/core') + * import markdown = require('refractor/lang/markdown') + * + * console.log(refractor.listLanguages()) + * + * refractor.register(markdown) + * + * console.log(refractor.listLanguages()) + * ``` + * + * Yields: + * + * ``` + * [ 'markup', + * 'xml', + * 'html', + * 'mathml', + * 'svg', + * 'css', + * 'clike', + * 'javascript', + * 'js' ] + * [ 'markup', + * 'xml', + * 'html', + * 'mathml', + * 'svg', + * 'css', + * 'clike', + * 'javascript', + * 'js', + * 'markdown' ] + * ``` + */ +export function listLanguages(): string[]; diff --git a/types/refractor/index.d.ts b/types/refractor/index.d.ts new file mode 100644 index 0000000000..455db380e9 --- /dev/null +++ b/types/refractor/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for refractor 2.8 +// Project: https://github.com/wooorm/refractor#readme +// Definitions by: Ifiok Jr. +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.8 + +import refractor = require('./core'); +export = refractor; diff --git a/types/refractor/lang/abap.d.ts b/types/refractor/lang/abap.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/abap.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/abnf.d.ts b/types/refractor/lang/abnf.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/abnf.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/actionscript.d.ts b/types/refractor/lang/actionscript.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/actionscript.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/ada.d.ts b/types/refractor/lang/ada.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/ada.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/apacheconf.d.ts b/types/refractor/lang/apacheconf.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/apacheconf.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/apl.d.ts b/types/refractor/lang/apl.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/apl.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/applescript.d.ts b/types/refractor/lang/applescript.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/applescript.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/arduino.d.ts b/types/refractor/lang/arduino.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/arduino.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/arff.d.ts b/types/refractor/lang/arff.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/arff.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/asciidoc.d.ts b/types/refractor/lang/asciidoc.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/asciidoc.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/asm6502.d.ts b/types/refractor/lang/asm6502.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/asm6502.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/aspnet.d.ts b/types/refractor/lang/aspnet.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/aspnet.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/autohotkey.d.ts b/types/refractor/lang/autohotkey.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/autohotkey.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/autoit.d.ts b/types/refractor/lang/autoit.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/autoit.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/bash.d.ts b/types/refractor/lang/bash.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/bash.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/basic.d.ts b/types/refractor/lang/basic.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/basic.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/batch.d.ts b/types/refractor/lang/batch.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/batch.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/bison.d.ts b/types/refractor/lang/bison.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/bison.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/bnf.d.ts b/types/refractor/lang/bnf.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/bnf.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/brainfuck.d.ts b/types/refractor/lang/brainfuck.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/brainfuck.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/bro.d.ts b/types/refractor/lang/bro.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/bro.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/c.d.ts b/types/refractor/lang/c.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/c.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/cil.d.ts b/types/refractor/lang/cil.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/cil.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/clike.d.ts b/types/refractor/lang/clike.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/clike.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/clojure.d.ts b/types/refractor/lang/clojure.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/clojure.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/cmake.d.ts b/types/refractor/lang/cmake.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/cmake.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/coffeescript.d.ts b/types/refractor/lang/coffeescript.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/coffeescript.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/cpp.d.ts b/types/refractor/lang/cpp.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/cpp.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/crystal.d.ts b/types/refractor/lang/crystal.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/crystal.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/csharp.d.ts b/types/refractor/lang/csharp.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/csharp.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/csp.d.ts b/types/refractor/lang/csp.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/csp.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/css-extras.d.ts b/types/refractor/lang/css-extras.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/css-extras.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/css.d.ts b/types/refractor/lang/css.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/css.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/d.d.ts b/types/refractor/lang/d.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/d.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/dart.d.ts b/types/refractor/lang/dart.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/dart.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/diff.d.ts b/types/refractor/lang/diff.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/diff.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/django.d.ts b/types/refractor/lang/django.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/django.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/docker.d.ts b/types/refractor/lang/docker.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/docker.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/ebnf.d.ts b/types/refractor/lang/ebnf.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/ebnf.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/eiffel.d.ts b/types/refractor/lang/eiffel.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/eiffel.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/ejs.d.ts b/types/refractor/lang/ejs.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/ejs.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/elixir.d.ts b/types/refractor/lang/elixir.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/elixir.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/elm.d.ts b/types/refractor/lang/elm.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/elm.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/erb.d.ts b/types/refractor/lang/erb.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/erb.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/erlang.d.ts b/types/refractor/lang/erlang.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/erlang.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/flow.d.ts b/types/refractor/lang/flow.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/flow.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/fortran.d.ts b/types/refractor/lang/fortran.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/fortran.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/fsharp.d.ts b/types/refractor/lang/fsharp.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/fsharp.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/gcode.d.ts b/types/refractor/lang/gcode.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/gcode.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/gedcom.d.ts b/types/refractor/lang/gedcom.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/gedcom.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/gherkin.d.ts b/types/refractor/lang/gherkin.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/gherkin.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/git.d.ts b/types/refractor/lang/git.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/git.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/glsl.d.ts b/types/refractor/lang/glsl.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/glsl.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/gml.d.ts b/types/refractor/lang/gml.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/gml.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/go.d.ts b/types/refractor/lang/go.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/go.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/graphql.d.ts b/types/refractor/lang/graphql.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/graphql.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/groovy.d.ts b/types/refractor/lang/groovy.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/groovy.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/haml.d.ts b/types/refractor/lang/haml.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/haml.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/handlebars.d.ts b/types/refractor/lang/handlebars.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/handlebars.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/haskell.d.ts b/types/refractor/lang/haskell.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/haskell.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/haxe.d.ts b/types/refractor/lang/haxe.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/haxe.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/hcl.d.ts b/types/refractor/lang/hcl.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/hcl.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/hpkp.d.ts b/types/refractor/lang/hpkp.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/hpkp.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/hsts.d.ts b/types/refractor/lang/hsts.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/hsts.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/http.d.ts b/types/refractor/lang/http.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/http.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/ichigojam.d.ts b/types/refractor/lang/ichigojam.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/ichigojam.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/icon.d.ts b/types/refractor/lang/icon.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/icon.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/inform7.d.ts b/types/refractor/lang/inform7.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/inform7.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/ini.d.ts b/types/refractor/lang/ini.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/ini.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/io.d.ts b/types/refractor/lang/io.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/io.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/j.d.ts b/types/refractor/lang/j.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/j.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/java.d.ts b/types/refractor/lang/java.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/java.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/javadoc.d.ts b/types/refractor/lang/javadoc.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/javadoc.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/javadoclike.d.ts b/types/refractor/lang/javadoclike.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/javadoclike.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/javascript.d.ts b/types/refractor/lang/javascript.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/javascript.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/javastacktrace.d.ts b/types/refractor/lang/javastacktrace.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/javastacktrace.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/jolie.d.ts b/types/refractor/lang/jolie.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/jolie.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/js-extras.d.ts b/types/refractor/lang/js-extras.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/js-extras.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/jsdoc.d.ts b/types/refractor/lang/jsdoc.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/jsdoc.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/json.d.ts b/types/refractor/lang/json.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/json.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/json5.d.ts b/types/refractor/lang/json5.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/json5.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/jsonp.d.ts b/types/refractor/lang/jsonp.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/jsonp.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/jsx.d.ts b/types/refractor/lang/jsx.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/jsx.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/julia.d.ts b/types/refractor/lang/julia.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/julia.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/keyman.d.ts b/types/refractor/lang/keyman.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/keyman.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/kotlin.d.ts b/types/refractor/lang/kotlin.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/kotlin.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/latex.d.ts b/types/refractor/lang/latex.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/latex.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/less.d.ts b/types/refractor/lang/less.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/less.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/liquid.d.ts b/types/refractor/lang/liquid.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/liquid.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/lisp.d.ts b/types/refractor/lang/lisp.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/lisp.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/livescript.d.ts b/types/refractor/lang/livescript.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/livescript.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/lolcode.d.ts b/types/refractor/lang/lolcode.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/lolcode.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/lua.d.ts b/types/refractor/lang/lua.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/lua.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/makefile.d.ts b/types/refractor/lang/makefile.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/makefile.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/markdown.d.ts b/types/refractor/lang/markdown.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/markdown.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/markup-templating.d.ts b/types/refractor/lang/markup-templating.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/markup-templating.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/markup.d.ts b/types/refractor/lang/markup.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/markup.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/matlab.d.ts b/types/refractor/lang/matlab.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/matlab.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/mel.d.ts b/types/refractor/lang/mel.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/mel.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/mizar.d.ts b/types/refractor/lang/mizar.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/mizar.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/monkey.d.ts b/types/refractor/lang/monkey.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/monkey.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/n1ql.d.ts b/types/refractor/lang/n1ql.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/n1ql.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/n4js.d.ts b/types/refractor/lang/n4js.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/n4js.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/nand2tetris-hdl.d.ts b/types/refractor/lang/nand2tetris-hdl.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/nand2tetris-hdl.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/nasm.d.ts b/types/refractor/lang/nasm.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/nasm.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/nginx.d.ts b/types/refractor/lang/nginx.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/nginx.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/nim.d.ts b/types/refractor/lang/nim.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/nim.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/nix.d.ts b/types/refractor/lang/nix.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/nix.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/nsis.d.ts b/types/refractor/lang/nsis.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/nsis.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/objectivec.d.ts b/types/refractor/lang/objectivec.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/objectivec.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/ocaml.d.ts b/types/refractor/lang/ocaml.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/ocaml.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/opencl.d.ts b/types/refractor/lang/opencl.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/opencl.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/oz.d.ts b/types/refractor/lang/oz.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/oz.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/parigp.d.ts b/types/refractor/lang/parigp.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/parigp.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/parser.d.ts b/types/refractor/lang/parser.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/parser.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/pascal.d.ts b/types/refractor/lang/pascal.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/pascal.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/perl.d.ts b/types/refractor/lang/perl.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/perl.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/php-extras.d.ts b/types/refractor/lang/php-extras.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/php-extras.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/php.d.ts b/types/refractor/lang/php.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/php.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/phpdoc.d.ts b/types/refractor/lang/phpdoc.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/phpdoc.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/plsql.d.ts b/types/refractor/lang/plsql.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/plsql.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/powershell.d.ts b/types/refractor/lang/powershell.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/powershell.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/processing.d.ts b/types/refractor/lang/processing.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/processing.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/prolog.d.ts b/types/refractor/lang/prolog.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/prolog.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/properties.d.ts b/types/refractor/lang/properties.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/properties.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/protobuf.d.ts b/types/refractor/lang/protobuf.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/protobuf.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/pug.d.ts b/types/refractor/lang/pug.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/pug.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/puppet.d.ts b/types/refractor/lang/puppet.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/puppet.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/pure.d.ts b/types/refractor/lang/pure.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/pure.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/python.d.ts b/types/refractor/lang/python.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/python.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/q.d.ts b/types/refractor/lang/q.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/q.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/qore.d.ts b/types/refractor/lang/qore.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/qore.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/r.d.ts b/types/refractor/lang/r.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/r.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/reason.d.ts b/types/refractor/lang/reason.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/reason.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/regex.d.ts b/types/refractor/lang/regex.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/regex.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/renpy.d.ts b/types/refractor/lang/renpy.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/renpy.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/rest.d.ts b/types/refractor/lang/rest.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/rest.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/rip.d.ts b/types/refractor/lang/rip.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/rip.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/roboconf.d.ts b/types/refractor/lang/roboconf.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/roboconf.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/ruby.d.ts b/types/refractor/lang/ruby.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/ruby.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/rust.d.ts b/types/refractor/lang/rust.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/rust.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/sas.d.ts b/types/refractor/lang/sas.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/sas.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/sass.d.ts b/types/refractor/lang/sass.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/sass.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/scala.d.ts b/types/refractor/lang/scala.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/scala.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/scheme.d.ts b/types/refractor/lang/scheme.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/scheme.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/scss.d.ts b/types/refractor/lang/scss.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/scss.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/smalltalk.d.ts b/types/refractor/lang/smalltalk.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/smalltalk.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/smarty.d.ts b/types/refractor/lang/smarty.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/smarty.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/soy.d.ts b/types/refractor/lang/soy.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/soy.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/sql.d.ts b/types/refractor/lang/sql.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/sql.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/stylus.d.ts b/types/refractor/lang/stylus.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/stylus.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/swift.d.ts b/types/refractor/lang/swift.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/swift.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/t4-cs.d.ts b/types/refractor/lang/t4-cs.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/t4-cs.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/t4-templating.d.ts b/types/refractor/lang/t4-templating.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/t4-templating.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/t4-vb.d.ts b/types/refractor/lang/t4-vb.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/t4-vb.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/tap.d.ts b/types/refractor/lang/tap.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/tap.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/tcl.d.ts b/types/refractor/lang/tcl.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/tcl.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/textile.d.ts b/types/refractor/lang/textile.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/textile.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/toml.d.ts b/types/refractor/lang/toml.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/toml.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/tsx.d.ts b/types/refractor/lang/tsx.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/tsx.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/tt2.d.ts b/types/refractor/lang/tt2.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/tt2.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/twig.d.ts b/types/refractor/lang/twig.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/twig.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/typescript.d.ts b/types/refractor/lang/typescript.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/typescript.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/vala.d.ts b/types/refractor/lang/vala.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/vala.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/vbnet.d.ts b/types/refractor/lang/vbnet.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/vbnet.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/velocity.d.ts b/types/refractor/lang/velocity.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/velocity.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/verilog.d.ts b/types/refractor/lang/verilog.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/verilog.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/vhdl.d.ts b/types/refractor/lang/vhdl.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/vhdl.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/vim.d.ts b/types/refractor/lang/vim.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/vim.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/visual-basic.d.ts b/types/refractor/lang/visual-basic.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/visual-basic.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/wasm.d.ts b/types/refractor/lang/wasm.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/wasm.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/wiki.d.ts b/types/refractor/lang/wiki.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/wiki.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/xeora.d.ts b/types/refractor/lang/xeora.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/xeora.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/xojo.d.ts b/types/refractor/lang/xojo.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/xojo.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/xquery.d.ts b/types/refractor/lang/xquery.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/xquery.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/lang/yaml.d.ts b/types/refractor/lang/yaml.d.ts new file mode 100644 index 0000000000..3c89689b4b --- /dev/null +++ b/types/refractor/lang/yaml.d.ts @@ -0,0 +1,3 @@ +import { RefractorSyntax } from '../core'; +declare const lang: RefractorSyntax; +export = lang; diff --git a/types/refractor/refractor-tests.ts b/types/refractor/refractor-tests.ts new file mode 100644 index 0000000000..7f6ba879f7 --- /dev/null +++ b/types/refractor/refractor-tests.ts @@ -0,0 +1,4 @@ +import refractor = require('refractor/core'); +import markdown = require('refractor/lang/markdown'); + +refractor.register(markdown); diff --git a/types/refractor/tsconfig.json b/types/refractor/tsconfig.json new file mode 100644 index 0000000000..08eba09325 --- /dev/null +++ b/types/refractor/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6", "dom"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": ["../"], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "include": ["./lang"], + "files": ["index.d.ts", "refractor-tests.ts", "core.d.ts"] +} diff --git a/types/refractor/tslint.json b/types/refractor/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/refractor/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" }