Everywhere: Add copyright and license header to all source files
This commit is contained in:
parent
0f3cd1a513
commit
3ee99a7d40
25 changed files with 150 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { Highlighter } from './html/highlighter.js';
|
import { Highlighter } from './html/highlighter.js';
|
||||||
import { Span } from './html/highlighter/span.js';
|
import { Span } from './html/highlighter/span.js';
|
||||||
import { Tokenizer } from './html/tokenizer.js';
|
import { Tokenizer } from './html/tokenizer.js';
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
// FIXME: Convert to const enum
|
// FIXME: Convert to const enum
|
||||||
export type ParseError = 'unexpected-null-character' |
|
export type ParseError = 'unexpected-null-character' |
|
||||||
'unexpected-question-mark-instead-of-tag-name' |
|
'unexpected-question-mark-instead-of-tag-name' |
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { Color } from './highlighter/properties/color.js';
|
import { Color } from './highlighter/properties/color.js';
|
||||||
import { Cursor } from './highlighter/properties/cursor.js';
|
import { Cursor } from './highlighter/properties/cursor.js';
|
||||||
import { Font } from './highlighter/properties/font.js';
|
import { Font } from './highlighter/properties/font.js';
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
export abstract class Inspectable {
|
export abstract class Inspectable {
|
||||||
public abstract inspect(indent: number): string;
|
public abstract inspect(indent: number): string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { Property } from '../property.js';
|
import { Property } from '../property.js';
|
||||||
|
|
||||||
export class Color extends Property {
|
export class Color extends Property {
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { Property } from '../property.js';
|
import { Property } from '../property.js';
|
||||||
|
|
||||||
export class Cursor extends Property {
|
export class Cursor extends Property {
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { Property } from '../property.js';
|
import { Property } from '../property.js';
|
||||||
|
|
||||||
export class Font extends Property {
|
export class Font extends Property {
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { Property } from '../property.js';
|
import { Property } from '../property.js';
|
||||||
|
|
||||||
export class Link extends Property {
|
export class Link extends Property {
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { Inspectable } from './inspectable.js';
|
import { Inspectable } from './inspectable.js';
|
||||||
|
|
||||||
export abstract class Property extends Inspectable {
|
export abstract class Property extends Inspectable {
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { Attribute } from '../tokenizer/attribute.js';
|
import { Attribute } from '../tokenizer/attribute.js';
|
||||||
import { Position } from '../tokenizer/position.js';
|
import { Position } from '../tokenizer/position.js';
|
||||||
import { Range } from '../tokenizer/range.js';
|
import { Range } from '../tokenizer/range.js';
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { Color } from './highlighter/properties/color.js';
|
import { Color } from './highlighter/properties/color.js';
|
||||||
import { Span } from './highlighter/span.js';
|
import { Span } from './highlighter/span.js';
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { TODO, VERIFY, VERIFY_NOT_REACHED } from '../util/assertions.js';
|
import { TODO, VERIFY, VERIFY_NOT_REACHED } from '../util/assertions.js';
|
||||||
import { CodePoints } from '../util/codePoints.js';
|
import { CodePoints } from '../util/codePoints.js';
|
||||||
import { Constructor } from '../util/guards.js';
|
import { Constructor } from '../util/guards.js';
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { VERIFY } from '../../util/assertions.js';
|
import { VERIFY } from '../../util/assertions.js';
|
||||||
import { Inspectable } from '../highlighter/inspectable.js';
|
import { Inspectable } from '../highlighter/inspectable.js';
|
||||||
import { Position } from './position.js';
|
import { Position } from './position.js';
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
// Taken from https://html.spec.whatwg.org/entities.json
|
// Taken from https://html.spec.whatwg.org/entities.json
|
||||||
// See also: https://html.spec.whatwg.org/multipage/named-characters.html#named-character-references
|
// See also: https://html.spec.whatwg.org/multipage/named-characters.html#named-character-references
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { Inspectable } from '../highlighter/inspectable.js';
|
import { Inspectable } from '../highlighter/inspectable.js';
|
||||||
|
|
||||||
export class Position extends Inspectable {
|
export class Position extends Inspectable {
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { Position } from './position.js';
|
import { Position } from './position.js';
|
||||||
|
|
||||||
export type Range = {
|
export type Range = {
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
export const enum State {
|
export const enum State {
|
||||||
Data = 'Data',
|
Data = 'Data',
|
||||||
RCDATA = 'RCDATA',
|
RCDATA = 'RCDATA',
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { Inspectable } from '../highlighter/inspectable.js';
|
import { Inspectable } from '../highlighter/inspectable.js';
|
||||||
import { Position } from './position.js';
|
import { Position } from './position.js';
|
||||||
import { Range } from './range.js';
|
import { Range } from './range.js';
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { REPLACEMENT_CHARACTER, Token, Type } from '../token.js';
|
import { REPLACEMENT_CHARACTER, Token, Type } from '../token.js';
|
||||||
|
|
||||||
export class CharacterToken extends Token {
|
export class CharacterToken extends Token {
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { Token, Type, REPLACEMENT_CHARACTER } from '../token.js';
|
import { Token, Type, REPLACEMENT_CHARACTER } from '../token.js';
|
||||||
|
|
||||||
export class CommentToken extends Token {
|
export class CommentToken extends Token {
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { VERIFY } from '../../../util/assertions.js';
|
import { VERIFY } from '../../../util/assertions.js';
|
||||||
import { Token, Type, REPLACEMENT_CHARACTER } from '../token.js';
|
import { Token, Type, REPLACEMENT_CHARACTER } from '../token.js';
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { Token, Type } from '../token.js';
|
import { Token, Type } from '../token.js';
|
||||||
|
|
||||||
export class EndOfFileToken extends Token {
|
export class EndOfFileToken extends Token {
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { AttributeList } from '../attribute.js';
|
import { AttributeList } from '../attribute.js';
|
||||||
import { Token, Type, REPLACEMENT_CHARACTER } from '../token.js';
|
import { Token, Type, REPLACEMENT_CHARACTER } from '../token.js';
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { AttributeList } from '../attribute.js';
|
import { AttributeList } from '../attribute.js';
|
||||||
import { Token, Type, REPLACEMENT_CHARACTER } from '../token.js';
|
import { Token, Type, REPLACEMENT_CHARACTER } from '../token.js';
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,9 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2023, networkException <git@nwex.de>
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
|
*/
|
||||||
|
|
||||||
import { Color } from './html/highlighter/properties/color.js';
|
import { Color } from './html/highlighter/properties/color.js';
|
||||||
import { Property } from './html/highlighter/property.js';
|
import { Property } from './html/highlighter/property.js';
|
||||||
import { Span } from './html/highlighter/span.js';
|
import { Span } from './html/highlighter/span.js';
|
||||||
|
|
Loading…
Reference in a new issue