/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ 'use strict'; import IRichLanguageConfiguration = monaco.languages.LanguageConfiguration; import ILanguage = monaco.languages.IMonarchLanguage; export var conf:IRichLanguageConfiguration = { wordPattern: /(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g, comments: { lineComment: '//', blockComment: ['/*', '*/'] }, brackets: [ ['{', '}'], ['[', ']'], ['(', ')'] ], autoClosingPairs: [ { open: '{', close: '}', notIn: ['string.php'] }, { open: '[', close: ']', notIn: ['string.php'] }, { open: '(', close: ')', notIn: ['string.php'] }, { open: '"', close: '"', notIn: ['string.php'] }, { open: '\'', close: '\'', notIn: ['string.php'] } ] }; export const htmlTokenTypes = { DELIM_START: 'start.delimiter.tag.html', DELIM_END: 'end.delimiter.tag.html', DELIM_COMMENT: 'comment.html', getTag: (name: string) => { return 'tag.html'; } }; export var language = { defaultToken: '', tokenPostfix: '', ignoreCase: true, // The main tokenizer for our languages tokenizer: { root: [ [/<\?((php)|=)?/, { token: '@rematch', switchTo: '@phpInSimpleState.root' }], [/)/, [htmlTokenTypes.DELIM_START, 'tag.html', htmlTokenTypes.DELIM_END]], [/(<)(script)/, [htmlTokenTypes.DELIM_START, { token: 'tag.html', next: '@script'} ]], [/(<)(style)/, [htmlTokenTypes.DELIM_START, { token: 'tag.html', next: '@style'} ]], [/(<)([:\w]+)/, [htmlTokenTypes.DELIM_START, { token: 'tag.html', next: '@otherTag'} ]], [/(<\/)(\w+)/, [htmlTokenTypes.DELIM_START, { token: 'tag.html', next: '@otherTag' }]], [/]+/, 'metatag.content.html' ], [/>/, 'metatag.html', '@pop' ], ], comment: [ [/<\?((php)|=)?/, { token: '@rematch', switchTo: '@phpInSimpleState.comment' }], [/-->/, 'comment.html', '@pop'], [/[^-]+/, 'comment.content.html'], [/./, 'comment.content.html'] ], otherTag: [ [/<\?((php)|=)?/, { token: '@rematch', switchTo: '@phpInSimpleState.otherTag' }], [/\/?>/, htmlTokenTypes.DELIM_END, '@pop'], [/"([^"]*)"/, 'attribute.value'], [/'([^']*)'/, 'attribute.value'], [/[\w\-]+/, 'attribute.name'], [/=/, 'delimiter'], [/[ \t\r\n]+/], // whitespace ], // -- BEGIN //
// Hello // // // // guest // // ! //
// "); // // display shuffled cards (EXAMPLE ONLY) // for ($index = 0; $index < 52; $index++) { // if ($starting_point == 52) { $starting_point = 0; } // print("Uncut Point: $deck[$index] "); // print("Starting Point: $deck[$starting_point]
"); // $starting_point++; // } // ?> // //