-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moved from Ace editor to Monaco editor #84
Open
fudgepop01
wants to merge
9
commits into
kaitai-io:master
Choose a base branch
from
fudgepop01:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
47ad6db
Moved from Monaco editor to Ace editor
fudgepop01 365e70f
fixed parts of the ./build script
fudgepop01 042e190
Fixed all compiler errors with one exception
fudgepop01 a96159e
fixed certain crucial files not uploading properly (lib/_npm/vs & lib…
fudgepop01 8fbc16e
previous commit did nothing. No idea why but here's a workaround
fudgepop01 d75cd5c
Fix and extend KSY schema
dgelessus 13e819f
Merge pull request #1 from dgelessus/fix_ksy_schema
fudgepop01 04761c4
properly updated modules; updated to js-yaml
fudgepop01 7ee0215
updated the git submodule, removed the schema.ts file (will be added …
fudgepop01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
// Type definitions for js-yaml 3.12 | ||
// Project: https://github.com/nodeca/js-yaml | ||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Sebastian Clausen <https://github.com/sclausen> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.2 | ||
|
||
export as namespace jsyaml; | ||
|
||
export function safeLoad(str: string, opts?: LoadOptions): any; | ||
export function load(str: string, opts?: LoadOptions): any; | ||
|
||
export class Type { | ||
constructor(tag: string, opts?: TypeConstructorOptions); | ||
kind: 'sequence' | 'scalar' | 'mapping' | null; | ||
resolve(data: any): boolean; | ||
construct(data: any): any; | ||
instanceOf: object | null; | ||
predicate: string | null; | ||
represent: ((data: object) => any) | { [x: string]: (data: object) => any; } | null; | ||
defaultStyle: string | null; | ||
styleAliases: { [x: string]: any; }; | ||
} | ||
|
||
/* tslint:disable-next-line:no-unnecessary-class */ | ||
export class Schema implements SchemaDefinition { | ||
constructor(definition: SchemaDefinition); | ||
static create(types: Type[] | Type): Schema; | ||
static create(schemas: Schema[] | Schema, types: Type[] | Type): Schema; | ||
} | ||
|
||
export function safeLoadAll(str: string, iterator?: undefined, opts?: LoadOptions): any[]; | ||
export function safeLoadAll(str: string, iterator: (doc: any) => void, opts?: LoadOptions): undefined; | ||
|
||
export function loadAll(str: string, iterator?: undefined, opts?: LoadOptions): any[]; | ||
|
||
export function loadAll(str: string, iterator: (doc: any) => void, opts?: LoadOptions): undefined; | ||
|
||
export function safeDump(obj: any, opts?: DumpOptions): string; | ||
export function dump(obj: any, opts?: DumpOptions): string; | ||
|
||
export interface LoadOptions { | ||
/** string to be used as a file path in error/warning messages. */ | ||
filename?: string; | ||
/** function to call on warning messages. */ | ||
onWarning?(this: null, e: YAMLException): void; | ||
/** specifies a schema to use. */ | ||
schema?: SchemaDefinition; | ||
/** compatibility with JSON.parse behaviour. */ | ||
json?: boolean; | ||
} | ||
|
||
export interface DumpOptions { | ||
/** indentation width to use (in spaces). */ | ||
indent?: number; | ||
/** when true, will not add an indentation level to array elements */ | ||
noArrayIndent?: boolean; | ||
/** do not throw on invalid types (like function in the safe schema) and skip pairs and single values with such types. */ | ||
skipInvalid?: boolean; | ||
/** specifies level of nesting, when to switch from block to flow style for collections. -1 means block style everwhere */ | ||
flowLevel?: number; | ||
/** Each tag may have own set of styles. - "tag" => "style" map. */ | ||
styles?: { [x: string]: any; }; | ||
/** specifies a schema to use. */ | ||
schema?: SchemaDefinition; | ||
/** if true, sort keys when dumping YAML. If a function, use the function to sort the keys. (default: false) */ | ||
sortKeys?: boolean | ((a: any, b: any) => number); | ||
/** set max line width. (default: 80) */ | ||
lineWidth?: number; | ||
/** if true, don't convert duplicate objects into references (default: false) */ | ||
noRefs?: boolean; | ||
/** if true don't try to be compatible with older yaml versions. Currently: don't quote "yes", "no" and so on, as required for YAML 1.1 (default: false) */ | ||
noCompatMode?: boolean; | ||
/** | ||
* if true flow sequences will be condensed, omitting the space between `key: value` or `a, b`. Eg. `'[a,b]'` or `{a:{b:c}}`. | ||
* Can be useful when using yaml for pretty URL query params as spaces are %-encoded. (default: false). | ||
*/ | ||
condenseFlow?: boolean; | ||
} | ||
|
||
export interface TypeConstructorOptions { | ||
kind?: 'sequence' | 'scalar' | 'mapping'; | ||
resolve?: (data: any) => boolean; | ||
construct?: (data: any) => any; | ||
instanceOf?: object; | ||
predicate?: string; | ||
represent?: ((data: object) => any) | { [x: string]: (data: object) => any }; | ||
defaultStyle?: string; | ||
styleAliases?: { [x: string]: any; }; | ||
} | ||
|
||
export interface SchemaDefinition { | ||
implicit?: any[]; | ||
explicit?: Type[]; | ||
include?: Schema[]; | ||
} | ||
|
||
/** only strings, arrays and plain objects: http://www.yaml.org/spec/1.2/spec.html#id2802346 */ | ||
export let FAILSAFE_SCHEMA: Schema; | ||
/** only strings, arrays and plain objects: http://www.yaml.org/spec/1.2/spec.html#id2802346 */ | ||
export let JSON_SCHEMA: Schema; | ||
/** same as JSON_SCHEMA: http://www.yaml.org/spec/1.2/spec.html#id2804923 */ | ||
export let CORE_SCHEMA: Schema; | ||
/** all supported YAML types, without unsafe ones (!!js/undefined, !!js/regexp and !!js/function): http://yaml.org/type/ */ | ||
export let DEFAULT_SAFE_SCHEMA: Schema; | ||
/** all supported YAML types. */ | ||
export let DEFAULT_FULL_SCHEMA: Schema; | ||
export let MINIMAL_SCHEMA: Schema; | ||
export let SAFE_SCHEMA: Schema; | ||
|
||
export class YAMLException extends Error { | ||
constructor(reason?: any, mark?: any); | ||
toString(compact?: boolean): string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ahem, http://myserver/ ?