Upload original JAVA语言程序设计 course files (part 22)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/README.md +25 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/LICENSE.md +21 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/README.md +69 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/SECURITY.md +41 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/beautify/beautify-css.js +1672 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/beautify/beautify-html.js +0 -0
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/beautify/beautify.js +11 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/htmlLanguageService.d.ts +30 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/htmlLanguageService.js +59 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/htmlLanguageTypes.d.ts +256 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/htmlLanguageTypes.js +80 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/languageFacts/data/webCustomData.d.ts +2 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/languageFacts/data/webCustomData.js +0 -0
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/languageFacts/dataManager.js +77 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/languageFacts/dataProvider.js +112 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/parser/htmlEntities.js +2241 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/parser/htmlParser.js +161 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/parser/htmlScanner.d.ts +2 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/parser/htmlScanner.js +403 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlCompletion.js +579 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlFolding.js +174 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlFormatter.js +149 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlHighlighting.js +42 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlHover.js +265 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlLinkedEditing.js +24 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlLinks.js +157 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlMatchingTagPosition.js +25 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlRename.js +51 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlSelectionRange.js +174 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlSymbolsProvider.js +54 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/pathCompletion.js +126 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/utils/arrays.js +42 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/utils/markup.js +19 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/utils/object.js +7 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/utils/paths.js +64 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/utils/resources.js +73 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/utils/strings.js +64 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/beautify/beautify-css.js +1695 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/beautify/beautify-html.js +0 -0
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/beautify/beautify.js +25 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/htmlLanguageService.d.ts +30 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/htmlLanguageService.js +89 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/htmlLanguageTypes.d.ts +256 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/htmlLanguageTypes.js +125 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/languageFacts/data/webCustomData.d.ts +2 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/languageFacts/data/webCustomData.js +0 -0
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/languageFacts/dataManager.js +91 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/languageFacts/dataProvider.js +127 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/parser/htmlEntities.js +2254 -3
- Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/parser/htmlParser.js +176 -3
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/README.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# volar-service-html
|
| 2 |
+
|
| 3 |
+
Volar plugin for [`vscode-html-languageservice`](https://github.com/microsoft/vscode-html-languageservice).
|
| 4 |
+
|
| 5 |
+
## Installation
|
| 6 |
+
|
| 7 |
+
```sh
|
| 8 |
+
npm install volar-service-html
|
| 9 |
+
```
|
| 10 |
+
|
| 11 |
+
## Usage
|
| 12 |
+
|
| 13 |
+
`volar.config.js`
|
| 14 |
+
|
| 15 |
+
```js
|
| 16 |
+
module.exports = {
|
| 17 |
+
services: [
|
| 18 |
+
require('volar-service-html').create(),
|
| 19 |
+
],
|
| 20 |
+
};
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
## License
|
| 24 |
+
|
| 25 |
+
[MIT](LICENSE) © [Johnson Chu](https://github.com/johnsoncodehk)
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/LICENSE.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The MIT License (MIT)
|
| 2 |
+
|
| 3 |
+
Copyright (c) Microsoft
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/README.md
CHANGED
|
@@ -1,3 +1,69 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# vscode-html-languageservice
|
| 2 |
+
HTML language service extracted from VSCode to be reused, e.g in the Monaco editor.
|
| 3 |
+
|
| 4 |
+
[](https://www.npmjs.org/package/vscode-html-languageservice)
|
| 5 |
+
[](https://npmjs.org/package/vscode-html-languageservice)
|
| 6 |
+
[](https://github.com/microsoft/vscode-html-languageservice/actions)
|
| 7 |
+
[](https://opensource.org/licenses/MIT)
|
| 8 |
+
|
| 9 |
+
Why?
|
| 10 |
+
----
|
| 11 |
+
|
| 12 |
+
The _vscode-html-languageservice_ contains the language smarts behind the HTML editing experience of Visual Studio Code
|
| 13 |
+
and the Monaco editor.
|
| 14 |
+
|
| 15 |
+
- *doComplete* / *doComplete2* (async) provide completion proposals for a given location.
|
| 16 |
+
- *setCompletionParticipants* allows participant to provide suggestions for specific tokens.
|
| 17 |
+
- *doHover* provides hover information at a given location.
|
| 18 |
+
|
| 19 |
+
- *format* formats the code at the given range.
|
| 20 |
+
- *findDocumentLinks* finds all links in the document.
|
| 21 |
+
- *findDocumentSymbols* finds all the symbols in the document.
|
| 22 |
+
- *getFoldingRanges* return folding ranges for the given document.
|
| 23 |
+
- *getSelectionRanges* return the selection ranges for the given document.
|
| 24 |
+
...
|
| 25 |
+
|
| 26 |
+
For the complete API see [htmlLanguageService.ts](./src/htmlLanguageService.ts) and [htmlLanguageTypes.ts](./src/htmlLanguageTypes.ts)
|
| 27 |
+
|
| 28 |
+
Installation
|
| 29 |
+
------------
|
| 30 |
+
|
| 31 |
+
npm install --save vscode-html-languageservice
|
| 32 |
+
|
| 33 |
+
Development
|
| 34 |
+
-----------
|
| 35 |
+
|
| 36 |
+
- clone this repo, run `npm i``
|
| 37 |
+
- `npm test` to compile and run tests
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
How can I run and debug the service?
|
| 41 |
+
|
| 42 |
+
- open the folder in VSCode.
|
| 43 |
+
- set breakpoints, e.g. in `htmlCompletion.ts`
|
| 44 |
+
- run the Unit tests from the run viewlet and wait until a breakpoint is hit:
|
| 45 |
+

|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
How can I run and debug the service inside an instance of VSCode?
|
| 49 |
+
|
| 50 |
+
- run VSCode out of sources setup as described here: https://github.com/Microsoft/vscode/wiki/How-to-Contribute
|
| 51 |
+
- link the folder of the `vscode-html-languageservice` repo to `vscode/extensions/html-language-features/server` to run VSCode with the latest changes from that folder:
|
| 52 |
+
- cd `vscode-html-languageservice`, `npm link`
|
| 53 |
+
- cd `vscode/extensions/html-language-features/server`, `npm link vscode-html-languageservice`
|
| 54 |
+
- run VSCode out of source (`vscode/scripts/code.sh|bat`) and open a `.html` file
|
| 55 |
+
- in VSCode window that is open on the `vscode-html-languageservice` sources, run command `Debug: Attach to Node process` and pick the `code-oss` process with the `html-language-features` path
|
| 56 |
+

|
| 57 |
+
- set breakpoints, e.g. in `htmlCompletion.ts`
|
| 58 |
+
- in the instance run from sources, invoke code completion in the `.html` file
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
License
|
| 62 |
+
-------
|
| 63 |
+
|
| 64 |
+
(MIT License)
|
| 65 |
+
|
| 66 |
+
Copyright 2016-2023, Microsoft
|
| 67 |
+
|
| 68 |
+
`src/languageFacts/data/webCustomData.ts` (shipped as `lib/esm/languageFacts/data/webCustomData.ts` and `lib/umd/languageFacts/data/webCustomData.ts`)
|
| 69 |
+
are built upon content from [Mozilla Developer Network](https://developer.mozilla.org/en-US/docs/Web) and distributed under CC BY-SA 2.5.
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/SECURITY.md
CHANGED
|
@@ -1,3 +1,41 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.8 BLOCK -->
|
| 2 |
+
|
| 3 |
+
## Security
|
| 4 |
+
|
| 5 |
+
Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).
|
| 6 |
+
|
| 7 |
+
If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.
|
| 8 |
+
|
| 9 |
+
## Reporting Security Issues
|
| 10 |
+
|
| 11 |
+
**Please do not report security vulnerabilities through public GitHub issues.**
|
| 12 |
+
|
| 13 |
+
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).
|
| 14 |
+
|
| 15 |
+
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).
|
| 16 |
+
|
| 17 |
+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).
|
| 18 |
+
|
| 19 |
+
Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:
|
| 20 |
+
|
| 21 |
+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
|
| 22 |
+
* Full paths of source file(s) related to the manifestation of the issue
|
| 23 |
+
* The location of the affected source code (tag/branch/commit or direct URL)
|
| 24 |
+
* Any special configuration required to reproduce the issue
|
| 25 |
+
* Step-by-step instructions to reproduce the issue
|
| 26 |
+
* Proof-of-concept or exploit code (if possible)
|
| 27 |
+
* Impact of the issue, including how an attacker might exploit the issue
|
| 28 |
+
|
| 29 |
+
This information will help us triage your report more quickly.
|
| 30 |
+
|
| 31 |
+
If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.
|
| 32 |
+
|
| 33 |
+
## Preferred Languages
|
| 34 |
+
|
| 35 |
+
We prefer all communications to be in English.
|
| 36 |
+
|
| 37 |
+
## Policy
|
| 38 |
+
|
| 39 |
+
Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).
|
| 40 |
+
|
| 41 |
+
<!-- END MICROSOFT SECURITY.MD BLOCK -->
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/beautify/beautify-css.js
CHANGED
|
@@ -1,3 +1,1672 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// copied from js-beautify/js/lib/beautify-css.js
|
| 2 |
+
// version: 1.15.1
|
| 3 |
+
/* AUTO-GENERATED. DO NOT MODIFY. */
|
| 4 |
+
/*
|
| 5 |
+
|
| 6 |
+
The MIT License (MIT)
|
| 7 |
+
|
| 8 |
+
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
|
| 9 |
+
|
| 10 |
+
Permission is hereby granted, free of charge, to any person
|
| 11 |
+
obtaining a copy of this software and associated documentation files
|
| 12 |
+
(the "Software"), to deal in the Software without restriction,
|
| 13 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 14 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 15 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 16 |
+
subject to the following conditions:
|
| 17 |
+
|
| 18 |
+
The above copyright notice and this permission notice shall be
|
| 19 |
+
included in all copies or substantial portions of the Software.
|
| 20 |
+
|
| 21 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 22 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 23 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 24 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 25 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 26 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 27 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 28 |
+
SOFTWARE.
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
CSS Beautifier
|
| 32 |
+
---------------
|
| 33 |
+
|
| 34 |
+
Written by Harutyun Amirjanyan, (amirjanyan@gmail.com)
|
| 35 |
+
|
| 36 |
+
Based on code initially developed by: Einar Lielmanis, <einar@beautifier.io>
|
| 37 |
+
https://beautifier.io/
|
| 38 |
+
|
| 39 |
+
Usage:
|
| 40 |
+
css_beautify(source_text);
|
| 41 |
+
css_beautify(source_text, options);
|
| 42 |
+
|
| 43 |
+
The options are (default in brackets):
|
| 44 |
+
indent_size (4) — indentation size,
|
| 45 |
+
indent_char (space) — character to indent with,
|
| 46 |
+
selector_separator_newline (true) - separate selectors with newline or
|
| 47 |
+
not (e.g. "a,\nbr" or "a, br")
|
| 48 |
+
end_with_newline (false) - end with a newline
|
| 49 |
+
newline_between_rules (true) - add a new line after every css rule
|
| 50 |
+
space_around_selector_separator (false) - ensure space around selector separators:
|
| 51 |
+
'>', '+', '~' (e.g. "a>b" -> "a > b")
|
| 52 |
+
e.g
|
| 53 |
+
|
| 54 |
+
css_beautify(css_source_text, {
|
| 55 |
+
'indent_size': 1,
|
| 56 |
+
'indent_char': '\t',
|
| 57 |
+
'selector_separator': ' ',
|
| 58 |
+
'end_with_newline': false,
|
| 59 |
+
'newline_between_rules': true,
|
| 60 |
+
'space_around_selector_separator': true
|
| 61 |
+
});
|
| 62 |
+
*/
|
| 63 |
+
|
| 64 |
+
// http://www.w3.org/TR/CSS21/syndata.html#tokenization
|
| 65 |
+
// http://www.w3.org/TR/css3-syntax/
|
| 66 |
+
|
| 67 |
+
var legacy_beautify_css;
|
| 68 |
+
/******/ (function() { // webpackBootstrap
|
| 69 |
+
/******/ "use strict";
|
| 70 |
+
/******/ var __webpack_modules__ = ([
|
| 71 |
+
/* 0 */,
|
| 72 |
+
/* 1 */,
|
| 73 |
+
/* 2 */
|
| 74 |
+
/***/ (function(module) {
|
| 75 |
+
|
| 76 |
+
/*jshint node:true */
|
| 77 |
+
/*
|
| 78 |
+
The MIT License (MIT)
|
| 79 |
+
|
| 80 |
+
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
|
| 81 |
+
|
| 82 |
+
Permission is hereby granted, free of charge, to any person
|
| 83 |
+
obtaining a copy of this software and associated documentation files
|
| 84 |
+
(the "Software"), to deal in the Software without restriction,
|
| 85 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 86 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 87 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 88 |
+
subject to the following conditions:
|
| 89 |
+
|
| 90 |
+
The above copyright notice and this permission notice shall be
|
| 91 |
+
included in all copies or substantial portions of the Software.
|
| 92 |
+
|
| 93 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 94 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 95 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 96 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 97 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 98 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 99 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 100 |
+
SOFTWARE.
|
| 101 |
+
*/
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
function OutputLine(parent) {
|
| 106 |
+
this.__parent = parent;
|
| 107 |
+
this.__character_count = 0;
|
| 108 |
+
// use indent_count as a marker for this.__lines that have preserved indentation
|
| 109 |
+
this.__indent_count = -1;
|
| 110 |
+
this.__alignment_count = 0;
|
| 111 |
+
this.__wrap_point_index = 0;
|
| 112 |
+
this.__wrap_point_character_count = 0;
|
| 113 |
+
this.__wrap_point_indent_count = -1;
|
| 114 |
+
this.__wrap_point_alignment_count = 0;
|
| 115 |
+
|
| 116 |
+
this.__items = [];
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
OutputLine.prototype.clone_empty = function() {
|
| 120 |
+
var line = new OutputLine(this.__parent);
|
| 121 |
+
line.set_indent(this.__indent_count, this.__alignment_count);
|
| 122 |
+
return line;
|
| 123 |
+
};
|
| 124 |
+
|
| 125 |
+
OutputLine.prototype.item = function(index) {
|
| 126 |
+
if (index < 0) {
|
| 127 |
+
return this.__items[this.__items.length + index];
|
| 128 |
+
} else {
|
| 129 |
+
return this.__items[index];
|
| 130 |
+
}
|
| 131 |
+
};
|
| 132 |
+
|
| 133 |
+
OutputLine.prototype.has_match = function(pattern) {
|
| 134 |
+
for (var lastCheckedOutput = this.__items.length - 1; lastCheckedOutput >= 0; lastCheckedOutput--) {
|
| 135 |
+
if (this.__items[lastCheckedOutput].match(pattern)) {
|
| 136 |
+
return true;
|
| 137 |
+
}
|
| 138 |
+
}
|
| 139 |
+
return false;
|
| 140 |
+
};
|
| 141 |
+
|
| 142 |
+
OutputLine.prototype.set_indent = function(indent, alignment) {
|
| 143 |
+
if (this.is_empty()) {
|
| 144 |
+
this.__indent_count = indent || 0;
|
| 145 |
+
this.__alignment_count = alignment || 0;
|
| 146 |
+
this.__character_count = this.__parent.get_indent_size(this.__indent_count, this.__alignment_count);
|
| 147 |
+
}
|
| 148 |
+
};
|
| 149 |
+
|
| 150 |
+
OutputLine.prototype._set_wrap_point = function() {
|
| 151 |
+
if (this.__parent.wrap_line_length) {
|
| 152 |
+
this.__wrap_point_index = this.__items.length;
|
| 153 |
+
this.__wrap_point_character_count = this.__character_count;
|
| 154 |
+
this.__wrap_point_indent_count = this.__parent.next_line.__indent_count;
|
| 155 |
+
this.__wrap_point_alignment_count = this.__parent.next_line.__alignment_count;
|
| 156 |
+
}
|
| 157 |
+
};
|
| 158 |
+
|
| 159 |
+
OutputLine.prototype._should_wrap = function() {
|
| 160 |
+
return this.__wrap_point_index &&
|
| 161 |
+
this.__character_count > this.__parent.wrap_line_length &&
|
| 162 |
+
this.__wrap_point_character_count > this.__parent.next_line.__character_count;
|
| 163 |
+
};
|
| 164 |
+
|
| 165 |
+
OutputLine.prototype._allow_wrap = function() {
|
| 166 |
+
if (this._should_wrap()) {
|
| 167 |
+
this.__parent.add_new_line();
|
| 168 |
+
var next = this.__parent.current_line;
|
| 169 |
+
next.set_indent(this.__wrap_point_indent_count, this.__wrap_point_alignment_count);
|
| 170 |
+
next.__items = this.__items.slice(this.__wrap_point_index);
|
| 171 |
+
this.__items = this.__items.slice(0, this.__wrap_point_index);
|
| 172 |
+
|
| 173 |
+
next.__character_count += this.__character_count - this.__wrap_point_character_count;
|
| 174 |
+
this.__character_count = this.__wrap_point_character_count;
|
| 175 |
+
|
| 176 |
+
if (next.__items[0] === " ") {
|
| 177 |
+
next.__items.splice(0, 1);
|
| 178 |
+
next.__character_count -= 1;
|
| 179 |
+
}
|
| 180 |
+
return true;
|
| 181 |
+
}
|
| 182 |
+
return false;
|
| 183 |
+
};
|
| 184 |
+
|
| 185 |
+
OutputLine.prototype.is_empty = function() {
|
| 186 |
+
return this.__items.length === 0;
|
| 187 |
+
};
|
| 188 |
+
|
| 189 |
+
OutputLine.prototype.last = function() {
|
| 190 |
+
if (!this.is_empty()) {
|
| 191 |
+
return this.__items[this.__items.length - 1];
|
| 192 |
+
} else {
|
| 193 |
+
return null;
|
| 194 |
+
}
|
| 195 |
+
};
|
| 196 |
+
|
| 197 |
+
OutputLine.prototype.push = function(item) {
|
| 198 |
+
this.__items.push(item);
|
| 199 |
+
var last_newline_index = item.lastIndexOf('\n');
|
| 200 |
+
if (last_newline_index !== -1) {
|
| 201 |
+
this.__character_count = item.length - last_newline_index;
|
| 202 |
+
} else {
|
| 203 |
+
this.__character_count += item.length;
|
| 204 |
+
}
|
| 205 |
+
};
|
| 206 |
+
|
| 207 |
+
OutputLine.prototype.pop = function() {
|
| 208 |
+
var item = null;
|
| 209 |
+
if (!this.is_empty()) {
|
| 210 |
+
item = this.__items.pop();
|
| 211 |
+
this.__character_count -= item.length;
|
| 212 |
+
}
|
| 213 |
+
return item;
|
| 214 |
+
};
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
OutputLine.prototype._remove_indent = function() {
|
| 218 |
+
if (this.__indent_count > 0) {
|
| 219 |
+
this.__indent_count -= 1;
|
| 220 |
+
this.__character_count -= this.__parent.indent_size;
|
| 221 |
+
}
|
| 222 |
+
};
|
| 223 |
+
|
| 224 |
+
OutputLine.prototype._remove_wrap_indent = function() {
|
| 225 |
+
if (this.__wrap_point_indent_count > 0) {
|
| 226 |
+
this.__wrap_point_indent_count -= 1;
|
| 227 |
+
}
|
| 228 |
+
};
|
| 229 |
+
OutputLine.prototype.trim = function() {
|
| 230 |
+
while (this.last() === ' ') {
|
| 231 |
+
this.__items.pop();
|
| 232 |
+
this.__character_count -= 1;
|
| 233 |
+
}
|
| 234 |
+
};
|
| 235 |
+
|
| 236 |
+
OutputLine.prototype.toString = function() {
|
| 237 |
+
var result = '';
|
| 238 |
+
if (this.is_empty()) {
|
| 239 |
+
if (this.__parent.indent_empty_lines) {
|
| 240 |
+
result = this.__parent.get_indent_string(this.__indent_count);
|
| 241 |
+
}
|
| 242 |
+
} else {
|
| 243 |
+
result = this.__parent.get_indent_string(this.__indent_count, this.__alignment_count);
|
| 244 |
+
result += this.__items.join('');
|
| 245 |
+
}
|
| 246 |
+
return result;
|
| 247 |
+
};
|
| 248 |
+
|
| 249 |
+
function IndentStringCache(options, baseIndentString) {
|
| 250 |
+
this.__cache = [''];
|
| 251 |
+
this.__indent_size = options.indent_size;
|
| 252 |
+
this.__indent_string = options.indent_char;
|
| 253 |
+
if (!options.indent_with_tabs) {
|
| 254 |
+
this.__indent_string = new Array(options.indent_size + 1).join(options.indent_char);
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
// Set to null to continue support for auto detection of base indent
|
| 258 |
+
baseIndentString = baseIndentString || '';
|
| 259 |
+
if (options.indent_level > 0) {
|
| 260 |
+
baseIndentString = new Array(options.indent_level + 1).join(this.__indent_string);
|
| 261 |
+
}
|
| 262 |
+
|
| 263 |
+
this.__base_string = baseIndentString;
|
| 264 |
+
this.__base_string_length = baseIndentString.length;
|
| 265 |
+
}
|
| 266 |
+
|
| 267 |
+
IndentStringCache.prototype.get_indent_size = function(indent, column) {
|
| 268 |
+
var result = this.__base_string_length;
|
| 269 |
+
column = column || 0;
|
| 270 |
+
if (indent < 0) {
|
| 271 |
+
result = 0;
|
| 272 |
+
}
|
| 273 |
+
result += indent * this.__indent_size;
|
| 274 |
+
result += column;
|
| 275 |
+
return result;
|
| 276 |
+
};
|
| 277 |
+
|
| 278 |
+
IndentStringCache.prototype.get_indent_string = function(indent_level, column) {
|
| 279 |
+
var result = this.__base_string;
|
| 280 |
+
column = column || 0;
|
| 281 |
+
if (indent_level < 0) {
|
| 282 |
+
indent_level = 0;
|
| 283 |
+
result = '';
|
| 284 |
+
}
|
| 285 |
+
column += indent_level * this.__indent_size;
|
| 286 |
+
this.__ensure_cache(column);
|
| 287 |
+
result += this.__cache[column];
|
| 288 |
+
return result;
|
| 289 |
+
};
|
| 290 |
+
|
| 291 |
+
IndentStringCache.prototype.__ensure_cache = function(column) {
|
| 292 |
+
while (column >= this.__cache.length) {
|
| 293 |
+
this.__add_column();
|
| 294 |
+
}
|
| 295 |
+
};
|
| 296 |
+
|
| 297 |
+
IndentStringCache.prototype.__add_column = function() {
|
| 298 |
+
var column = this.__cache.length;
|
| 299 |
+
var indent = 0;
|
| 300 |
+
var result = '';
|
| 301 |
+
if (this.__indent_size && column >= this.__indent_size) {
|
| 302 |
+
indent = Math.floor(column / this.__indent_size);
|
| 303 |
+
column -= indent * this.__indent_size;
|
| 304 |
+
result = new Array(indent + 1).join(this.__indent_string);
|
| 305 |
+
}
|
| 306 |
+
if (column) {
|
| 307 |
+
result += new Array(column + 1).join(' ');
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
this.__cache.push(result);
|
| 311 |
+
};
|
| 312 |
+
|
| 313 |
+
function Output(options, baseIndentString) {
|
| 314 |
+
this.__indent_cache = new IndentStringCache(options, baseIndentString);
|
| 315 |
+
this.raw = false;
|
| 316 |
+
this._end_with_newline = options.end_with_newline;
|
| 317 |
+
this.indent_size = options.indent_size;
|
| 318 |
+
this.wrap_line_length = options.wrap_line_length;
|
| 319 |
+
this.indent_empty_lines = options.indent_empty_lines;
|
| 320 |
+
this.__lines = [];
|
| 321 |
+
this.previous_line = null;
|
| 322 |
+
this.current_line = null;
|
| 323 |
+
this.next_line = new OutputLine(this);
|
| 324 |
+
this.space_before_token = false;
|
| 325 |
+
this.non_breaking_space = false;
|
| 326 |
+
this.previous_token_wrapped = false;
|
| 327 |
+
// initialize
|
| 328 |
+
this.__add_outputline();
|
| 329 |
+
}
|
| 330 |
+
|
| 331 |
+
Output.prototype.__add_outputline = function() {
|
| 332 |
+
this.previous_line = this.current_line;
|
| 333 |
+
this.current_line = this.next_line.clone_empty();
|
| 334 |
+
this.__lines.push(this.current_line);
|
| 335 |
+
};
|
| 336 |
+
|
| 337 |
+
Output.prototype.get_line_number = function() {
|
| 338 |
+
return this.__lines.length;
|
| 339 |
+
};
|
| 340 |
+
|
| 341 |
+
Output.prototype.get_indent_string = function(indent, column) {
|
| 342 |
+
return this.__indent_cache.get_indent_string(indent, column);
|
| 343 |
+
};
|
| 344 |
+
|
| 345 |
+
Output.prototype.get_indent_size = function(indent, column) {
|
| 346 |
+
return this.__indent_cache.get_indent_size(indent, column);
|
| 347 |
+
};
|
| 348 |
+
|
| 349 |
+
Output.prototype.is_empty = function() {
|
| 350 |
+
return !this.previous_line && this.current_line.is_empty();
|
| 351 |
+
};
|
| 352 |
+
|
| 353 |
+
Output.prototype.add_new_line = function(force_newline) {
|
| 354 |
+
// never newline at the start of file
|
| 355 |
+
// otherwise, newline only if we didn't just add one or we're forced
|
| 356 |
+
if (this.is_empty() ||
|
| 357 |
+
(!force_newline && this.just_added_newline())) {
|
| 358 |
+
return false;
|
| 359 |
+
}
|
| 360 |
+
|
| 361 |
+
// if raw output is enabled, don't print additional newlines,
|
| 362 |
+
// but still return True as though you had
|
| 363 |
+
if (!this.raw) {
|
| 364 |
+
this.__add_outputline();
|
| 365 |
+
}
|
| 366 |
+
return true;
|
| 367 |
+
};
|
| 368 |
+
|
| 369 |
+
Output.prototype.get_code = function(eol) {
|
| 370 |
+
this.trim(true);
|
| 371 |
+
|
| 372 |
+
// handle some edge cases where the last tokens
|
| 373 |
+
// has text that ends with newline(s)
|
| 374 |
+
var last_item = this.current_line.pop();
|
| 375 |
+
if (last_item) {
|
| 376 |
+
if (last_item[last_item.length - 1] === '\n') {
|
| 377 |
+
last_item = last_item.replace(/\n+$/g, '');
|
| 378 |
+
}
|
| 379 |
+
this.current_line.push(last_item);
|
| 380 |
+
}
|
| 381 |
+
|
| 382 |
+
if (this._end_with_newline) {
|
| 383 |
+
this.__add_outputline();
|
| 384 |
+
}
|
| 385 |
+
|
| 386 |
+
var sweet_code = this.__lines.join('\n');
|
| 387 |
+
|
| 388 |
+
if (eol !== '\n') {
|
| 389 |
+
sweet_code = sweet_code.replace(/[\n]/g, eol);
|
| 390 |
+
}
|
| 391 |
+
return sweet_code;
|
| 392 |
+
};
|
| 393 |
+
|
| 394 |
+
Output.prototype.set_wrap_point = function() {
|
| 395 |
+
this.current_line._set_wrap_point();
|
| 396 |
+
};
|
| 397 |
+
|
| 398 |
+
Output.prototype.set_indent = function(indent, alignment) {
|
| 399 |
+
indent = indent || 0;
|
| 400 |
+
alignment = alignment || 0;
|
| 401 |
+
|
| 402 |
+
// Next line stores alignment values
|
| 403 |
+
this.next_line.set_indent(indent, alignment);
|
| 404 |
+
|
| 405 |
+
// Never indent your first output indent at the start of the file
|
| 406 |
+
if (this.__lines.length > 1) {
|
| 407 |
+
this.current_line.set_indent(indent, alignment);
|
| 408 |
+
return true;
|
| 409 |
+
}
|
| 410 |
+
|
| 411 |
+
this.current_line.set_indent();
|
| 412 |
+
return false;
|
| 413 |
+
};
|
| 414 |
+
|
| 415 |
+
Output.prototype.add_raw_token = function(token) {
|
| 416 |
+
for (var x = 0; x < token.newlines; x++) {
|
| 417 |
+
this.__add_outputline();
|
| 418 |
+
}
|
| 419 |
+
this.current_line.set_indent(-1);
|
| 420 |
+
this.current_line.push(token.whitespace_before);
|
| 421 |
+
this.current_line.push(token.text);
|
| 422 |
+
this.space_before_token = false;
|
| 423 |
+
this.non_breaking_space = false;
|
| 424 |
+
this.previous_token_wrapped = false;
|
| 425 |
+
};
|
| 426 |
+
|
| 427 |
+
Output.prototype.add_token = function(printable_token) {
|
| 428 |
+
this.__add_space_before_token();
|
| 429 |
+
this.current_line.push(printable_token);
|
| 430 |
+
this.space_before_token = false;
|
| 431 |
+
this.non_breaking_space = false;
|
| 432 |
+
this.previous_token_wrapped = this.current_line._allow_wrap();
|
| 433 |
+
};
|
| 434 |
+
|
| 435 |
+
Output.prototype.__add_space_before_token = function() {
|
| 436 |
+
if (this.space_before_token && !this.just_added_newline()) {
|
| 437 |
+
if (!this.non_breaking_space) {
|
| 438 |
+
this.set_wrap_point();
|
| 439 |
+
}
|
| 440 |
+
this.current_line.push(' ');
|
| 441 |
+
}
|
| 442 |
+
};
|
| 443 |
+
|
| 444 |
+
Output.prototype.remove_indent = function(index) {
|
| 445 |
+
var output_length = this.__lines.length;
|
| 446 |
+
while (index < output_length) {
|
| 447 |
+
this.__lines[index]._remove_indent();
|
| 448 |
+
index++;
|
| 449 |
+
}
|
| 450 |
+
this.current_line._remove_wrap_indent();
|
| 451 |
+
};
|
| 452 |
+
|
| 453 |
+
Output.prototype.trim = function(eat_newlines) {
|
| 454 |
+
eat_newlines = (eat_newlines === undefined) ? false : eat_newlines;
|
| 455 |
+
|
| 456 |
+
this.current_line.trim();
|
| 457 |
+
|
| 458 |
+
while (eat_newlines && this.__lines.length > 1 &&
|
| 459 |
+
this.current_line.is_empty()) {
|
| 460 |
+
this.__lines.pop();
|
| 461 |
+
this.current_line = this.__lines[this.__lines.length - 1];
|
| 462 |
+
this.current_line.trim();
|
| 463 |
+
}
|
| 464 |
+
|
| 465 |
+
this.previous_line = this.__lines.length > 1 ?
|
| 466 |
+
this.__lines[this.__lines.length - 2] : null;
|
| 467 |
+
};
|
| 468 |
+
|
| 469 |
+
Output.prototype.just_added_newline = function() {
|
| 470 |
+
return this.current_line.is_empty();
|
| 471 |
+
};
|
| 472 |
+
|
| 473 |
+
Output.prototype.just_added_blankline = function() {
|
| 474 |
+
return this.is_empty() ||
|
| 475 |
+
(this.current_line.is_empty() && this.previous_line.is_empty());
|
| 476 |
+
};
|
| 477 |
+
|
| 478 |
+
Output.prototype.ensure_empty_line_above = function(starts_with, ends_with) {
|
| 479 |
+
var index = this.__lines.length - 2;
|
| 480 |
+
while (index >= 0) {
|
| 481 |
+
var potentialEmptyLine = this.__lines[index];
|
| 482 |
+
if (potentialEmptyLine.is_empty()) {
|
| 483 |
+
break;
|
| 484 |
+
} else if (potentialEmptyLine.item(0).indexOf(starts_with) !== 0 &&
|
| 485 |
+
potentialEmptyLine.item(-1) !== ends_with) {
|
| 486 |
+
this.__lines.splice(index + 1, 0, new OutputLine(this));
|
| 487 |
+
this.previous_line = this.__lines[this.__lines.length - 2];
|
| 488 |
+
break;
|
| 489 |
+
}
|
| 490 |
+
index--;
|
| 491 |
+
}
|
| 492 |
+
};
|
| 493 |
+
|
| 494 |
+
module.exports.Output = Output;
|
| 495 |
+
|
| 496 |
+
|
| 497 |
+
/***/ }),
|
| 498 |
+
/* 3 */,
|
| 499 |
+
/* 4 */,
|
| 500 |
+
/* 5 */,
|
| 501 |
+
/* 6 */
|
| 502 |
+
/***/ (function(module) {
|
| 503 |
+
|
| 504 |
+
/*jshint node:true */
|
| 505 |
+
/*
|
| 506 |
+
|
| 507 |
+
The MIT License (MIT)
|
| 508 |
+
|
| 509 |
+
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
|
| 510 |
+
|
| 511 |
+
Permission is hereby granted, free of charge, to any person
|
| 512 |
+
obtaining a copy of this software and associated documentation files
|
| 513 |
+
(the "Software"), to deal in the Software without restriction,
|
| 514 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 515 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 516 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 517 |
+
subject to the following conditions:
|
| 518 |
+
|
| 519 |
+
The above copyright notice and this permission notice shall be
|
| 520 |
+
included in all copies or substantial portions of the Software.
|
| 521 |
+
|
| 522 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 523 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 524 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 525 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 526 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 527 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 528 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 529 |
+
SOFTWARE.
|
| 530 |
+
*/
|
| 531 |
+
|
| 532 |
+
|
| 533 |
+
|
| 534 |
+
function Options(options, merge_child_field) {
|
| 535 |
+
this.raw_options = _mergeOpts(options, merge_child_field);
|
| 536 |
+
|
| 537 |
+
// Support passing the source text back with no change
|
| 538 |
+
this.disabled = this._get_boolean('disabled');
|
| 539 |
+
|
| 540 |
+
this.eol = this._get_characters('eol', 'auto');
|
| 541 |
+
this.end_with_newline = this._get_boolean('end_with_newline');
|
| 542 |
+
this.indent_size = this._get_number('indent_size', 4);
|
| 543 |
+
this.indent_char = this._get_characters('indent_char', ' ');
|
| 544 |
+
this.indent_level = this._get_number('indent_level');
|
| 545 |
+
|
| 546 |
+
this.preserve_newlines = this._get_boolean('preserve_newlines', true);
|
| 547 |
+
this.max_preserve_newlines = this._get_number('max_preserve_newlines', 32786);
|
| 548 |
+
if (!this.preserve_newlines) {
|
| 549 |
+
this.max_preserve_newlines = 0;
|
| 550 |
+
}
|
| 551 |
+
|
| 552 |
+
this.indent_with_tabs = this._get_boolean('indent_with_tabs', this.indent_char === '\t');
|
| 553 |
+
if (this.indent_with_tabs) {
|
| 554 |
+
this.indent_char = '\t';
|
| 555 |
+
|
| 556 |
+
// indent_size behavior changed after 1.8.6
|
| 557 |
+
// It used to be that indent_size would be
|
| 558 |
+
// set to 1 for indent_with_tabs. That is no longer needed and
|
| 559 |
+
// actually doesn't make sense - why not use spaces? Further,
|
| 560 |
+
// that might produce unexpected behavior - tabs being used
|
| 561 |
+
// for single-column alignment. So, when indent_with_tabs is true
|
| 562 |
+
// and indent_size is 1, reset indent_size to 4.
|
| 563 |
+
if (this.indent_size === 1) {
|
| 564 |
+
this.indent_size = 4;
|
| 565 |
+
}
|
| 566 |
+
}
|
| 567 |
+
|
| 568 |
+
// Backwards compat with 1.3.x
|
| 569 |
+
this.wrap_line_length = this._get_number('wrap_line_length', this._get_number('max_char'));
|
| 570 |
+
|
| 571 |
+
this.indent_empty_lines = this._get_boolean('indent_empty_lines');
|
| 572 |
+
|
| 573 |
+
// valid templating languages ['django', 'erb', 'handlebars', 'php', 'smarty', 'angular']
|
| 574 |
+
// For now, 'auto' = all off for javascript, all except angular on for html (and inline javascript/css).
|
| 575 |
+
// other values ignored
|
| 576 |
+
this.templating = this._get_selection_list('templating', ['auto', 'none', 'angular', 'django', 'erb', 'handlebars', 'php', 'smarty'], ['auto']);
|
| 577 |
+
}
|
| 578 |
+
|
| 579 |
+
Options.prototype._get_array = function(name, default_value) {
|
| 580 |
+
var option_value = this.raw_options[name];
|
| 581 |
+
var result = default_value || [];
|
| 582 |
+
if (typeof option_value === 'object') {
|
| 583 |
+
if (option_value !== null && typeof option_value.concat === 'function') {
|
| 584 |
+
result = option_value.concat();
|
| 585 |
+
}
|
| 586 |
+
} else if (typeof option_value === 'string') {
|
| 587 |
+
result = option_value.split(/[^a-zA-Z0-9_\/\-]+/);
|
| 588 |
+
}
|
| 589 |
+
return result;
|
| 590 |
+
};
|
| 591 |
+
|
| 592 |
+
Options.prototype._get_boolean = function(name, default_value) {
|
| 593 |
+
var option_value = this.raw_options[name];
|
| 594 |
+
var result = option_value === undefined ? !!default_value : !!option_value;
|
| 595 |
+
return result;
|
| 596 |
+
};
|
| 597 |
+
|
| 598 |
+
Options.prototype._get_characters = function(name, default_value) {
|
| 599 |
+
var option_value = this.raw_options[name];
|
| 600 |
+
var result = default_value || '';
|
| 601 |
+
if (typeof option_value === 'string') {
|
| 602 |
+
result = option_value.replace(/\\r/, '\r').replace(/\\n/, '\n').replace(/\\t/, '\t');
|
| 603 |
+
}
|
| 604 |
+
return result;
|
| 605 |
+
};
|
| 606 |
+
|
| 607 |
+
Options.prototype._get_number = function(name, default_value) {
|
| 608 |
+
var option_value = this.raw_options[name];
|
| 609 |
+
default_value = parseInt(default_value, 10);
|
| 610 |
+
if (isNaN(default_value)) {
|
| 611 |
+
default_value = 0;
|
| 612 |
+
}
|
| 613 |
+
var result = parseInt(option_value, 10);
|
| 614 |
+
if (isNaN(result)) {
|
| 615 |
+
result = default_value;
|
| 616 |
+
}
|
| 617 |
+
return result;
|
| 618 |
+
};
|
| 619 |
+
|
| 620 |
+
Options.prototype._get_selection = function(name, selection_list, default_value) {
|
| 621 |
+
var result = this._get_selection_list(name, selection_list, default_value);
|
| 622 |
+
if (result.length !== 1) {
|
| 623 |
+
throw new Error(
|
| 624 |
+
"Invalid Option Value: The option '" + name + "' can only be one of the following values:\n" +
|
| 625 |
+
selection_list + "\nYou passed in: '" + this.raw_options[name] + "'");
|
| 626 |
+
}
|
| 627 |
+
|
| 628 |
+
return result[0];
|
| 629 |
+
};
|
| 630 |
+
|
| 631 |
+
|
| 632 |
+
Options.prototype._get_selection_list = function(name, selection_list, default_value) {
|
| 633 |
+
if (!selection_list || selection_list.length === 0) {
|
| 634 |
+
throw new Error("Selection list cannot be empty.");
|
| 635 |
+
}
|
| 636 |
+
|
| 637 |
+
default_value = default_value || [selection_list[0]];
|
| 638 |
+
if (!this._is_valid_selection(default_value, selection_list)) {
|
| 639 |
+
throw new Error("Invalid Default Value!");
|
| 640 |
+
}
|
| 641 |
+
|
| 642 |
+
var result = this._get_array(name, default_value);
|
| 643 |
+
if (!this._is_valid_selection(result, selection_list)) {
|
| 644 |
+
throw new Error(
|
| 645 |
+
"Invalid Option Value: The option '" + name + "' can contain only the following values:\n" +
|
| 646 |
+
selection_list + "\nYou passed in: '" + this.raw_options[name] + "'");
|
| 647 |
+
}
|
| 648 |
+
|
| 649 |
+
return result;
|
| 650 |
+
};
|
| 651 |
+
|
| 652 |
+
Options.prototype._is_valid_selection = function(result, selection_list) {
|
| 653 |
+
return result.length && selection_list.length &&
|
| 654 |
+
!result.some(function(item) { return selection_list.indexOf(item) === -1; });
|
| 655 |
+
};
|
| 656 |
+
|
| 657 |
+
|
| 658 |
+
// merges child options up with the parent options object
|
| 659 |
+
// Example: obj = {a: 1, b: {a: 2}}
|
| 660 |
+
// mergeOpts(obj, 'b')
|
| 661 |
+
//
|
| 662 |
+
// Returns: {a: 2}
|
| 663 |
+
function _mergeOpts(allOptions, childFieldName) {
|
| 664 |
+
var finalOpts = {};
|
| 665 |
+
allOptions = _normalizeOpts(allOptions);
|
| 666 |
+
var name;
|
| 667 |
+
|
| 668 |
+
for (name in allOptions) {
|
| 669 |
+
if (name !== childFieldName) {
|
| 670 |
+
finalOpts[name] = allOptions[name];
|
| 671 |
+
}
|
| 672 |
+
}
|
| 673 |
+
|
| 674 |
+
//merge in the per type settings for the childFieldName
|
| 675 |
+
if (childFieldName && allOptions[childFieldName]) {
|
| 676 |
+
for (name in allOptions[childFieldName]) {
|
| 677 |
+
finalOpts[name] = allOptions[childFieldName][name];
|
| 678 |
+
}
|
| 679 |
+
}
|
| 680 |
+
return finalOpts;
|
| 681 |
+
}
|
| 682 |
+
|
| 683 |
+
function _normalizeOpts(options) {
|
| 684 |
+
var convertedOpts = {};
|
| 685 |
+
var key;
|
| 686 |
+
|
| 687 |
+
for (key in options) {
|
| 688 |
+
var newKey = key.replace(/-/g, "_");
|
| 689 |
+
convertedOpts[newKey] = options[key];
|
| 690 |
+
}
|
| 691 |
+
return convertedOpts;
|
| 692 |
+
}
|
| 693 |
+
|
| 694 |
+
module.exports.Options = Options;
|
| 695 |
+
module.exports.normalizeOpts = _normalizeOpts;
|
| 696 |
+
module.exports.mergeOpts = _mergeOpts;
|
| 697 |
+
|
| 698 |
+
|
| 699 |
+
/***/ }),
|
| 700 |
+
/* 7 */,
|
| 701 |
+
/* 8 */
|
| 702 |
+
/***/ (function(module) {
|
| 703 |
+
|
| 704 |
+
/*jshint node:true */
|
| 705 |
+
/*
|
| 706 |
+
|
| 707 |
+
The MIT License (MIT)
|
| 708 |
+
|
| 709 |
+
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
|
| 710 |
+
|
| 711 |
+
Permission is hereby granted, free of charge, to any person
|
| 712 |
+
obtaining a copy of this software and associated documentation files
|
| 713 |
+
(the "Software"), to deal in the Software without restriction,
|
| 714 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 715 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 716 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 717 |
+
subject to the following conditions:
|
| 718 |
+
|
| 719 |
+
The above copyright notice and this permission notice shall be
|
| 720 |
+
included in all copies or substantial portions of the Software.
|
| 721 |
+
|
| 722 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 723 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 724 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 725 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 726 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 727 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 728 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 729 |
+
SOFTWARE.
|
| 730 |
+
*/
|
| 731 |
+
|
| 732 |
+
|
| 733 |
+
|
| 734 |
+
var regexp_has_sticky = RegExp.prototype.hasOwnProperty('sticky');
|
| 735 |
+
|
| 736 |
+
function InputScanner(input_string) {
|
| 737 |
+
this.__input = input_string || '';
|
| 738 |
+
this.__input_length = this.__input.length;
|
| 739 |
+
this.__position = 0;
|
| 740 |
+
}
|
| 741 |
+
|
| 742 |
+
InputScanner.prototype.restart = function() {
|
| 743 |
+
this.__position = 0;
|
| 744 |
+
};
|
| 745 |
+
|
| 746 |
+
InputScanner.prototype.back = function() {
|
| 747 |
+
if (this.__position > 0) {
|
| 748 |
+
this.__position -= 1;
|
| 749 |
+
}
|
| 750 |
+
};
|
| 751 |
+
|
| 752 |
+
InputScanner.prototype.hasNext = function() {
|
| 753 |
+
return this.__position < this.__input_length;
|
| 754 |
+
};
|
| 755 |
+
|
| 756 |
+
InputScanner.prototype.next = function() {
|
| 757 |
+
var val = null;
|
| 758 |
+
if (this.hasNext()) {
|
| 759 |
+
val = this.__input.charAt(this.__position);
|
| 760 |
+
this.__position += 1;
|
| 761 |
+
}
|
| 762 |
+
return val;
|
| 763 |
+
};
|
| 764 |
+
|
| 765 |
+
InputScanner.prototype.peek = function(index) {
|
| 766 |
+
var val = null;
|
| 767 |
+
index = index || 0;
|
| 768 |
+
index += this.__position;
|
| 769 |
+
if (index >= 0 && index < this.__input_length) {
|
| 770 |
+
val = this.__input.charAt(index);
|
| 771 |
+
}
|
| 772 |
+
return val;
|
| 773 |
+
};
|
| 774 |
+
|
| 775 |
+
// This is a JavaScript only helper function (not in python)
|
| 776 |
+
// Javascript doesn't have a match method
|
| 777 |
+
// and not all implementation support "sticky" flag.
|
| 778 |
+
// If they do not support sticky then both this.match() and this.test() method
|
| 779 |
+
// must get the match and check the index of the match.
|
| 780 |
+
// If sticky is supported and set, this method will use it.
|
| 781 |
+
// Otherwise it will check that global is set, and fall back to the slower method.
|
| 782 |
+
InputScanner.prototype.__match = function(pattern, index) {
|
| 783 |
+
pattern.lastIndex = index;
|
| 784 |
+
var pattern_match = pattern.exec(this.__input);
|
| 785 |
+
|
| 786 |
+
if (pattern_match && !(regexp_has_sticky && pattern.sticky)) {
|
| 787 |
+
if (pattern_match.index !== index) {
|
| 788 |
+
pattern_match = null;
|
| 789 |
+
}
|
| 790 |
+
}
|
| 791 |
+
|
| 792 |
+
return pattern_match;
|
| 793 |
+
};
|
| 794 |
+
|
| 795 |
+
InputScanner.prototype.test = function(pattern, index) {
|
| 796 |
+
index = index || 0;
|
| 797 |
+
index += this.__position;
|
| 798 |
+
|
| 799 |
+
if (index >= 0 && index < this.__input_length) {
|
| 800 |
+
return !!this.__match(pattern, index);
|
| 801 |
+
} else {
|
| 802 |
+
return false;
|
| 803 |
+
}
|
| 804 |
+
};
|
| 805 |
+
|
| 806 |
+
InputScanner.prototype.testChar = function(pattern, index) {
|
| 807 |
+
// test one character regex match
|
| 808 |
+
var val = this.peek(index);
|
| 809 |
+
pattern.lastIndex = 0;
|
| 810 |
+
return val !== null && pattern.test(val);
|
| 811 |
+
};
|
| 812 |
+
|
| 813 |
+
InputScanner.prototype.match = function(pattern) {
|
| 814 |
+
var pattern_match = this.__match(pattern, this.__position);
|
| 815 |
+
if (pattern_match) {
|
| 816 |
+
this.__position += pattern_match[0].length;
|
| 817 |
+
} else {
|
| 818 |
+
pattern_match = null;
|
| 819 |
+
}
|
| 820 |
+
return pattern_match;
|
| 821 |
+
};
|
| 822 |
+
|
| 823 |
+
InputScanner.prototype.read = function(starting_pattern, until_pattern, until_after) {
|
| 824 |
+
var val = '';
|
| 825 |
+
var match;
|
| 826 |
+
if (starting_pattern) {
|
| 827 |
+
match = this.match(starting_pattern);
|
| 828 |
+
if (match) {
|
| 829 |
+
val += match[0];
|
| 830 |
+
}
|
| 831 |
+
}
|
| 832 |
+
if (until_pattern && (match || !starting_pattern)) {
|
| 833 |
+
val += this.readUntil(until_pattern, until_after);
|
| 834 |
+
}
|
| 835 |
+
return val;
|
| 836 |
+
};
|
| 837 |
+
|
| 838 |
+
InputScanner.prototype.readUntil = function(pattern, until_after) {
|
| 839 |
+
var val = '';
|
| 840 |
+
var match_index = this.__position;
|
| 841 |
+
pattern.lastIndex = this.__position;
|
| 842 |
+
var pattern_match = pattern.exec(this.__input);
|
| 843 |
+
if (pattern_match) {
|
| 844 |
+
match_index = pattern_match.index;
|
| 845 |
+
if (until_after) {
|
| 846 |
+
match_index += pattern_match[0].length;
|
| 847 |
+
}
|
| 848 |
+
} else {
|
| 849 |
+
match_index = this.__input_length;
|
| 850 |
+
}
|
| 851 |
+
|
| 852 |
+
val = this.__input.substring(this.__position, match_index);
|
| 853 |
+
this.__position = match_index;
|
| 854 |
+
return val;
|
| 855 |
+
};
|
| 856 |
+
|
| 857 |
+
InputScanner.prototype.readUntilAfter = function(pattern) {
|
| 858 |
+
return this.readUntil(pattern, true);
|
| 859 |
+
};
|
| 860 |
+
|
| 861 |
+
InputScanner.prototype.get_regexp = function(pattern, match_from) {
|
| 862 |
+
var result = null;
|
| 863 |
+
var flags = 'g';
|
| 864 |
+
if (match_from && regexp_has_sticky) {
|
| 865 |
+
flags = 'y';
|
| 866 |
+
}
|
| 867 |
+
// strings are converted to regexp
|
| 868 |
+
if (typeof pattern === "string" && pattern !== '') {
|
| 869 |
+
// result = new RegExp(pattern.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'), flags);
|
| 870 |
+
result = new RegExp(pattern, flags);
|
| 871 |
+
} else if (pattern) {
|
| 872 |
+
result = new RegExp(pattern.source, flags);
|
| 873 |
+
}
|
| 874 |
+
return result;
|
| 875 |
+
};
|
| 876 |
+
|
| 877 |
+
InputScanner.prototype.get_literal_regexp = function(literal_string) {
|
| 878 |
+
return RegExp(literal_string.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'));
|
| 879 |
+
};
|
| 880 |
+
|
| 881 |
+
/* css beautifier legacy helpers */
|
| 882 |
+
InputScanner.prototype.peekUntilAfter = function(pattern) {
|
| 883 |
+
var start = this.__position;
|
| 884 |
+
var val = this.readUntilAfter(pattern);
|
| 885 |
+
this.__position = start;
|
| 886 |
+
return val;
|
| 887 |
+
};
|
| 888 |
+
|
| 889 |
+
InputScanner.prototype.lookBack = function(testVal) {
|
| 890 |
+
var start = this.__position - 1;
|
| 891 |
+
return start >= testVal.length && this.__input.substring(start - testVal.length, start)
|
| 892 |
+
.toLowerCase() === testVal;
|
| 893 |
+
};
|
| 894 |
+
|
| 895 |
+
module.exports.InputScanner = InputScanner;
|
| 896 |
+
|
| 897 |
+
|
| 898 |
+
/***/ }),
|
| 899 |
+
/* 9 */,
|
| 900 |
+
/* 10 */,
|
| 901 |
+
/* 11 */,
|
| 902 |
+
/* 12 */,
|
| 903 |
+
/* 13 */
|
| 904 |
+
/***/ (function(module) {
|
| 905 |
+
|
| 906 |
+
/*jshint node:true */
|
| 907 |
+
/*
|
| 908 |
+
|
| 909 |
+
The MIT License (MIT)
|
| 910 |
+
|
| 911 |
+
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
|
| 912 |
+
|
| 913 |
+
Permission is hereby granted, free of charge, to any person
|
| 914 |
+
obtaining a copy of this software and associated documentation files
|
| 915 |
+
(the "Software"), to deal in the Software without restriction,
|
| 916 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 917 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 918 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 919 |
+
subject to the following conditions:
|
| 920 |
+
|
| 921 |
+
The above copyright notice and this permission notice shall be
|
| 922 |
+
included in all copies or substantial portions of the Software.
|
| 923 |
+
|
| 924 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 925 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 926 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 927 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 928 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 929 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 930 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 931 |
+
SOFTWARE.
|
| 932 |
+
*/
|
| 933 |
+
|
| 934 |
+
|
| 935 |
+
|
| 936 |
+
function Directives(start_block_pattern, end_block_pattern) {
|
| 937 |
+
start_block_pattern = typeof start_block_pattern === 'string' ? start_block_pattern : start_block_pattern.source;
|
| 938 |
+
end_block_pattern = typeof end_block_pattern === 'string' ? end_block_pattern : end_block_pattern.source;
|
| 939 |
+
this.__directives_block_pattern = new RegExp(start_block_pattern + / beautify( \w+[:]\w+)+ /.source + end_block_pattern, 'g');
|
| 940 |
+
this.__directive_pattern = / (\w+)[:](\w+)/g;
|
| 941 |
+
|
| 942 |
+
this.__directives_end_ignore_pattern = new RegExp(start_block_pattern + /\sbeautify\signore:end\s/.source + end_block_pattern, 'g');
|
| 943 |
+
}
|
| 944 |
+
|
| 945 |
+
Directives.prototype.get_directives = function(text) {
|
| 946 |
+
if (!text.match(this.__directives_block_pattern)) {
|
| 947 |
+
return null;
|
| 948 |
+
}
|
| 949 |
+
|
| 950 |
+
var directives = {};
|
| 951 |
+
this.__directive_pattern.lastIndex = 0;
|
| 952 |
+
var directive_match = this.__directive_pattern.exec(text);
|
| 953 |
+
|
| 954 |
+
while (directive_match) {
|
| 955 |
+
directives[directive_match[1]] = directive_match[2];
|
| 956 |
+
directive_match = this.__directive_pattern.exec(text);
|
| 957 |
+
}
|
| 958 |
+
|
| 959 |
+
return directives;
|
| 960 |
+
};
|
| 961 |
+
|
| 962 |
+
Directives.prototype.readIgnored = function(input) {
|
| 963 |
+
return input.readUntilAfter(this.__directives_end_ignore_pattern);
|
| 964 |
+
};
|
| 965 |
+
|
| 966 |
+
|
| 967 |
+
module.exports.Directives = Directives;
|
| 968 |
+
|
| 969 |
+
|
| 970 |
+
/***/ }),
|
| 971 |
+
/* 14 */,
|
| 972 |
+
/* 15 */
|
| 973 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
| 974 |
+
|
| 975 |
+
/*jshint node:true */
|
| 976 |
+
/*
|
| 977 |
+
|
| 978 |
+
The MIT License (MIT)
|
| 979 |
+
|
| 980 |
+
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
|
| 981 |
+
|
| 982 |
+
Permission is hereby granted, free of charge, to any person
|
| 983 |
+
obtaining a copy of this software and associated documentation files
|
| 984 |
+
(the "Software"), to deal in the Software without restriction,
|
| 985 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 986 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 987 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 988 |
+
subject to the following conditions:
|
| 989 |
+
|
| 990 |
+
The above copyright notice and this permission notice shall be
|
| 991 |
+
included in all copies or substantial portions of the Software.
|
| 992 |
+
|
| 993 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 994 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 995 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 996 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 997 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 998 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 999 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 1000 |
+
SOFTWARE.
|
| 1001 |
+
*/
|
| 1002 |
+
|
| 1003 |
+
|
| 1004 |
+
|
| 1005 |
+
var Beautifier = (__webpack_require__(16).Beautifier),
|
| 1006 |
+
Options = (__webpack_require__(17).Options);
|
| 1007 |
+
|
| 1008 |
+
function css_beautify(source_text, options) {
|
| 1009 |
+
var beautifier = new Beautifier(source_text, options);
|
| 1010 |
+
return beautifier.beautify();
|
| 1011 |
+
}
|
| 1012 |
+
|
| 1013 |
+
module.exports = css_beautify;
|
| 1014 |
+
module.exports.defaultOptions = function() {
|
| 1015 |
+
return new Options();
|
| 1016 |
+
};
|
| 1017 |
+
|
| 1018 |
+
|
| 1019 |
+
/***/ }),
|
| 1020 |
+
/* 16 */
|
| 1021 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
| 1022 |
+
|
| 1023 |
+
/*jshint node:true */
|
| 1024 |
+
/*
|
| 1025 |
+
|
| 1026 |
+
The MIT License (MIT)
|
| 1027 |
+
|
| 1028 |
+
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
|
| 1029 |
+
|
| 1030 |
+
Permission is hereby granted, free of charge, to any person
|
| 1031 |
+
obtaining a copy of this software and associated documentation files
|
| 1032 |
+
(the "Software"), to deal in the Software without restriction,
|
| 1033 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 1034 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 1035 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 1036 |
+
subject to the following conditions:
|
| 1037 |
+
|
| 1038 |
+
The above copyright notice and this permission notice shall be
|
| 1039 |
+
included in all copies or substantial portions of the Software.
|
| 1040 |
+
|
| 1041 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 1042 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 1043 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 1044 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 1045 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 1046 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 1047 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 1048 |
+
SOFTWARE.
|
| 1049 |
+
*/
|
| 1050 |
+
|
| 1051 |
+
|
| 1052 |
+
|
| 1053 |
+
var Options = (__webpack_require__(17).Options);
|
| 1054 |
+
var Output = (__webpack_require__(2).Output);
|
| 1055 |
+
var InputScanner = (__webpack_require__(8).InputScanner);
|
| 1056 |
+
var Directives = (__webpack_require__(13).Directives);
|
| 1057 |
+
|
| 1058 |
+
var directives_core = new Directives(/\/\*/, /\*\//);
|
| 1059 |
+
|
| 1060 |
+
var lineBreak = /\r\n|[\r\n]/;
|
| 1061 |
+
var allLineBreaks = /\r\n|[\r\n]/g;
|
| 1062 |
+
|
| 1063 |
+
// tokenizer
|
| 1064 |
+
var whitespaceChar = /\s/;
|
| 1065 |
+
var whitespacePattern = /(?:\s|\n)+/g;
|
| 1066 |
+
var block_comment_pattern = /\/\*(?:[\s\S]*?)((?:\*\/)|$)/g;
|
| 1067 |
+
var comment_pattern = /\/\/(?:[^\n\r\u2028\u2029]*)/g;
|
| 1068 |
+
|
| 1069 |
+
function Beautifier(source_text, options) {
|
| 1070 |
+
this._source_text = source_text || '';
|
| 1071 |
+
// Allow the setting of language/file-type specific options
|
| 1072 |
+
// with inheritance of overall settings
|
| 1073 |
+
this._options = new Options(options);
|
| 1074 |
+
this._ch = null;
|
| 1075 |
+
this._input = null;
|
| 1076 |
+
|
| 1077 |
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/At-rule
|
| 1078 |
+
this.NESTED_AT_RULE = {
|
| 1079 |
+
"page": true,
|
| 1080 |
+
"font-face": true,
|
| 1081 |
+
"keyframes": true,
|
| 1082 |
+
// also in CONDITIONAL_GROUP_RULE below
|
| 1083 |
+
"media": true,
|
| 1084 |
+
"supports": true,
|
| 1085 |
+
"document": true
|
| 1086 |
+
};
|
| 1087 |
+
this.CONDITIONAL_GROUP_RULE = {
|
| 1088 |
+
"media": true,
|
| 1089 |
+
"supports": true,
|
| 1090 |
+
"document": true
|
| 1091 |
+
};
|
| 1092 |
+
this.NON_SEMICOLON_NEWLINE_PROPERTY = [
|
| 1093 |
+
"grid-template-areas",
|
| 1094 |
+
"grid-template"
|
| 1095 |
+
];
|
| 1096 |
+
|
| 1097 |
+
}
|
| 1098 |
+
|
| 1099 |
+
Beautifier.prototype.eatString = function(endChars) {
|
| 1100 |
+
var result = '';
|
| 1101 |
+
this._ch = this._input.next();
|
| 1102 |
+
while (this._ch) {
|
| 1103 |
+
result += this._ch;
|
| 1104 |
+
if (this._ch === "\\") {
|
| 1105 |
+
result += this._input.next();
|
| 1106 |
+
} else if (endChars.indexOf(this._ch) !== -1 || this._ch === "\n") {
|
| 1107 |
+
break;
|
| 1108 |
+
}
|
| 1109 |
+
this._ch = this._input.next();
|
| 1110 |
+
}
|
| 1111 |
+
return result;
|
| 1112 |
+
};
|
| 1113 |
+
|
| 1114 |
+
// Skips any white space in the source text from the current position.
|
| 1115 |
+
// When allowAtLeastOneNewLine is true, will output new lines for each
|
| 1116 |
+
// newline character found; if the user has preserve_newlines off, only
|
| 1117 |
+
// the first newline will be output
|
| 1118 |
+
Beautifier.prototype.eatWhitespace = function(allowAtLeastOneNewLine) {
|
| 1119 |
+
var result = whitespaceChar.test(this._input.peek());
|
| 1120 |
+
var newline_count = 0;
|
| 1121 |
+
while (whitespaceChar.test(this._input.peek())) {
|
| 1122 |
+
this._ch = this._input.next();
|
| 1123 |
+
if (allowAtLeastOneNewLine && this._ch === '\n') {
|
| 1124 |
+
if (newline_count === 0 || newline_count < this._options.max_preserve_newlines) {
|
| 1125 |
+
newline_count++;
|
| 1126 |
+
this._output.add_new_line(true);
|
| 1127 |
+
}
|
| 1128 |
+
}
|
| 1129 |
+
}
|
| 1130 |
+
return result;
|
| 1131 |
+
};
|
| 1132 |
+
|
| 1133 |
+
// Nested pseudo-class if we are insideRule
|
| 1134 |
+
// and the next special character found opens
|
| 1135 |
+
// a new block
|
| 1136 |
+
Beautifier.prototype.foundNestedPseudoClass = function() {
|
| 1137 |
+
var openParen = 0;
|
| 1138 |
+
var i = 1;
|
| 1139 |
+
var ch = this._input.peek(i);
|
| 1140 |
+
while (ch) {
|
| 1141 |
+
if (ch === "{") {
|
| 1142 |
+
return true;
|
| 1143 |
+
} else if (ch === '(') {
|
| 1144 |
+
// pseudoclasses can contain ()
|
| 1145 |
+
openParen += 1;
|
| 1146 |
+
} else if (ch === ')') {
|
| 1147 |
+
if (openParen === 0) {
|
| 1148 |
+
return false;
|
| 1149 |
+
}
|
| 1150 |
+
openParen -= 1;
|
| 1151 |
+
} else if (ch === ";" || ch === "}") {
|
| 1152 |
+
return false;
|
| 1153 |
+
}
|
| 1154 |
+
i++;
|
| 1155 |
+
ch = this._input.peek(i);
|
| 1156 |
+
}
|
| 1157 |
+
return false;
|
| 1158 |
+
};
|
| 1159 |
+
|
| 1160 |
+
Beautifier.prototype.print_string = function(output_string) {
|
| 1161 |
+
this._output.set_indent(this._indentLevel);
|
| 1162 |
+
this._output.non_breaking_space = true;
|
| 1163 |
+
this._output.add_token(output_string);
|
| 1164 |
+
};
|
| 1165 |
+
|
| 1166 |
+
Beautifier.prototype.preserveSingleSpace = function(isAfterSpace) {
|
| 1167 |
+
if (isAfterSpace) {
|
| 1168 |
+
this._output.space_before_token = true;
|
| 1169 |
+
}
|
| 1170 |
+
};
|
| 1171 |
+
|
| 1172 |
+
Beautifier.prototype.indent = function() {
|
| 1173 |
+
this._indentLevel++;
|
| 1174 |
+
};
|
| 1175 |
+
|
| 1176 |
+
Beautifier.prototype.outdent = function() {
|
| 1177 |
+
if (this._indentLevel > 0) {
|
| 1178 |
+
this._indentLevel--;
|
| 1179 |
+
}
|
| 1180 |
+
};
|
| 1181 |
+
|
| 1182 |
+
/*_____________________--------------------_____________________*/
|
| 1183 |
+
|
| 1184 |
+
Beautifier.prototype.beautify = function() {
|
| 1185 |
+
if (this._options.disabled) {
|
| 1186 |
+
return this._source_text;
|
| 1187 |
+
}
|
| 1188 |
+
|
| 1189 |
+
var source_text = this._source_text;
|
| 1190 |
+
var eol = this._options.eol;
|
| 1191 |
+
if (eol === 'auto') {
|
| 1192 |
+
eol = '\n';
|
| 1193 |
+
if (source_text && lineBreak.test(source_text || '')) {
|
| 1194 |
+
eol = source_text.match(lineBreak)[0];
|
| 1195 |
+
}
|
| 1196 |
+
}
|
| 1197 |
+
|
| 1198 |
+
|
| 1199 |
+
// HACK: newline parsing inconsistent. This brute force normalizes the this._input.
|
| 1200 |
+
source_text = source_text.replace(allLineBreaks, '\n');
|
| 1201 |
+
|
| 1202 |
+
// reset
|
| 1203 |
+
var baseIndentString = source_text.match(/^[\t ]*/)[0];
|
| 1204 |
+
|
| 1205 |
+
this._output = new Output(this._options, baseIndentString);
|
| 1206 |
+
this._input = new InputScanner(source_text);
|
| 1207 |
+
this._indentLevel = 0;
|
| 1208 |
+
this._nestedLevel = 0;
|
| 1209 |
+
|
| 1210 |
+
this._ch = null;
|
| 1211 |
+
var parenLevel = 0;
|
| 1212 |
+
|
| 1213 |
+
var insideRule = false;
|
| 1214 |
+
// This is the value side of a property value pair (blue in the following ex)
|
| 1215 |
+
// label { content: blue }
|
| 1216 |
+
var insidePropertyValue = false;
|
| 1217 |
+
var enteringConditionalGroup = false;
|
| 1218 |
+
var insideNonNestedAtRule = false;
|
| 1219 |
+
var insideScssMap = false;
|
| 1220 |
+
var topCharacter = this._ch;
|
| 1221 |
+
var insideNonSemiColonValues = false;
|
| 1222 |
+
var whitespace;
|
| 1223 |
+
var isAfterSpace;
|
| 1224 |
+
var previous_ch;
|
| 1225 |
+
|
| 1226 |
+
while (true) {
|
| 1227 |
+
whitespace = this._input.read(whitespacePattern);
|
| 1228 |
+
isAfterSpace = whitespace !== '';
|
| 1229 |
+
previous_ch = topCharacter;
|
| 1230 |
+
this._ch = this._input.next();
|
| 1231 |
+
if (this._ch === '\\' && this._input.hasNext()) {
|
| 1232 |
+
this._ch += this._input.next();
|
| 1233 |
+
}
|
| 1234 |
+
topCharacter = this._ch;
|
| 1235 |
+
|
| 1236 |
+
if (!this._ch) {
|
| 1237 |
+
break;
|
| 1238 |
+
} else if (this._ch === '/' && this._input.peek() === '*') {
|
| 1239 |
+
// /* css comment */
|
| 1240 |
+
// Always start block comments on a new line.
|
| 1241 |
+
// This handles scenarios where a block comment immediately
|
| 1242 |
+
// follows a property definition on the same line or where
|
| 1243 |
+
// minified code is being beautified.
|
| 1244 |
+
this._output.add_new_line();
|
| 1245 |
+
this._input.back();
|
| 1246 |
+
|
| 1247 |
+
var comment = this._input.read(block_comment_pattern);
|
| 1248 |
+
|
| 1249 |
+
// Handle ignore directive
|
| 1250 |
+
var directives = directives_core.get_directives(comment);
|
| 1251 |
+
if (directives && directives.ignore === 'start') {
|
| 1252 |
+
comment += directives_core.readIgnored(this._input);
|
| 1253 |
+
}
|
| 1254 |
+
|
| 1255 |
+
this.print_string(comment);
|
| 1256 |
+
|
| 1257 |
+
// Ensures any new lines following the comment are preserved
|
| 1258 |
+
this.eatWhitespace(true);
|
| 1259 |
+
|
| 1260 |
+
// Block comments are followed by a new line so they don't
|
| 1261 |
+
// share a line with other properties
|
| 1262 |
+
this._output.add_new_line();
|
| 1263 |
+
} else if (this._ch === '/' && this._input.peek() === '/') {
|
| 1264 |
+
// // single line comment
|
| 1265 |
+
// Preserves the space before a comment
|
| 1266 |
+
// on the same line as a rule
|
| 1267 |
+
this._output.space_before_token = true;
|
| 1268 |
+
this._input.back();
|
| 1269 |
+
this.print_string(this._input.read(comment_pattern));
|
| 1270 |
+
|
| 1271 |
+
// Ensures any new lines following the comment are preserved
|
| 1272 |
+
this.eatWhitespace(true);
|
| 1273 |
+
} else if (this._ch === '$') {
|
| 1274 |
+
this.preserveSingleSpace(isAfterSpace);
|
| 1275 |
+
|
| 1276 |
+
this.print_string(this._ch);
|
| 1277 |
+
|
| 1278 |
+
// strip trailing space, if present, for hash property checks
|
| 1279 |
+
var variable = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
|
| 1280 |
+
|
| 1281 |
+
if (variable.match(/[ :]$/)) {
|
| 1282 |
+
// we have a variable or pseudo-class, add it and insert one space before continuing
|
| 1283 |
+
variable = this.eatString(": ").replace(/\s+$/, '');
|
| 1284 |
+
this.print_string(variable);
|
| 1285 |
+
this._output.space_before_token = true;
|
| 1286 |
+
}
|
| 1287 |
+
|
| 1288 |
+
// might be sass variable
|
| 1289 |
+
if (parenLevel === 0 && variable.indexOf(':') !== -1) {
|
| 1290 |
+
insidePropertyValue = true;
|
| 1291 |
+
this.indent();
|
| 1292 |
+
}
|
| 1293 |
+
} else if (this._ch === '@') {
|
| 1294 |
+
this.preserveSingleSpace(isAfterSpace);
|
| 1295 |
+
|
| 1296 |
+
// deal with less property mixins @{...}
|
| 1297 |
+
if (this._input.peek() === '{') {
|
| 1298 |
+
this.print_string(this._ch + this.eatString('}'));
|
| 1299 |
+
} else {
|
| 1300 |
+
this.print_string(this._ch);
|
| 1301 |
+
|
| 1302 |
+
// strip trailing space, if present, for hash property checks
|
| 1303 |
+
var variableOrRule = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
|
| 1304 |
+
|
| 1305 |
+
if (variableOrRule.match(/[ :]$/)) {
|
| 1306 |
+
// we have a variable or pseudo-class, add it and insert one space before continuing
|
| 1307 |
+
variableOrRule = this.eatString(": ").replace(/\s+$/, '');
|
| 1308 |
+
this.print_string(variableOrRule);
|
| 1309 |
+
this._output.space_before_token = true;
|
| 1310 |
+
}
|
| 1311 |
+
|
| 1312 |
+
// might be less variable
|
| 1313 |
+
if (parenLevel === 0 && variableOrRule.indexOf(':') !== -1) {
|
| 1314 |
+
insidePropertyValue = true;
|
| 1315 |
+
this.indent();
|
| 1316 |
+
|
| 1317 |
+
// might be a nesting at-rule
|
| 1318 |
+
} else if (variableOrRule in this.NESTED_AT_RULE) {
|
| 1319 |
+
this._nestedLevel += 1;
|
| 1320 |
+
if (variableOrRule in this.CONDITIONAL_GROUP_RULE) {
|
| 1321 |
+
enteringConditionalGroup = true;
|
| 1322 |
+
}
|
| 1323 |
+
|
| 1324 |
+
// might be a non-nested at-rule
|
| 1325 |
+
} else if (parenLevel === 0 && !insidePropertyValue) {
|
| 1326 |
+
insideNonNestedAtRule = true;
|
| 1327 |
+
}
|
| 1328 |
+
}
|
| 1329 |
+
} else if (this._ch === '#' && this._input.peek() === '{') {
|
| 1330 |
+
this.preserveSingleSpace(isAfterSpace);
|
| 1331 |
+
this.print_string(this._ch + this.eatString('}'));
|
| 1332 |
+
} else if (this._ch === '{') {
|
| 1333 |
+
if (insidePropertyValue) {
|
| 1334 |
+
insidePropertyValue = false;
|
| 1335 |
+
this.outdent();
|
| 1336 |
+
}
|
| 1337 |
+
|
| 1338 |
+
// non nested at rule becomes nested
|
| 1339 |
+
insideNonNestedAtRule = false;
|
| 1340 |
+
|
| 1341 |
+
// when entering conditional groups, only rulesets are allowed
|
| 1342 |
+
if (enteringConditionalGroup) {
|
| 1343 |
+
enteringConditionalGroup = false;
|
| 1344 |
+
insideRule = (this._indentLevel >= this._nestedLevel);
|
| 1345 |
+
} else {
|
| 1346 |
+
// otherwise, declarations are also allowed
|
| 1347 |
+
insideRule = (this._indentLevel >= this._nestedLevel - 1);
|
| 1348 |
+
}
|
| 1349 |
+
if (this._options.newline_between_rules && insideRule) {
|
| 1350 |
+
if (this._output.previous_line && this._output.previous_line.item(-1) !== '{') {
|
| 1351 |
+
this._output.ensure_empty_line_above('/', ',');
|
| 1352 |
+
}
|
| 1353 |
+
}
|
| 1354 |
+
|
| 1355 |
+
this._output.space_before_token = true;
|
| 1356 |
+
|
| 1357 |
+
// The difference in print_string and indent order is necessary to indent the '{' correctly
|
| 1358 |
+
if (this._options.brace_style === 'expand') {
|
| 1359 |
+
this._output.add_new_line();
|
| 1360 |
+
this.print_string(this._ch);
|
| 1361 |
+
this.indent();
|
| 1362 |
+
this._output.set_indent(this._indentLevel);
|
| 1363 |
+
} else {
|
| 1364 |
+
// inside mixin and first param is object
|
| 1365 |
+
if (previous_ch === '(') {
|
| 1366 |
+
this._output.space_before_token = false;
|
| 1367 |
+
} else if (previous_ch !== ',') {
|
| 1368 |
+
this.indent();
|
| 1369 |
+
}
|
| 1370 |
+
this.print_string(this._ch);
|
| 1371 |
+
}
|
| 1372 |
+
|
| 1373 |
+
this.eatWhitespace(true);
|
| 1374 |
+
this._output.add_new_line();
|
| 1375 |
+
} else if (this._ch === '}') {
|
| 1376 |
+
this.outdent();
|
| 1377 |
+
this._output.add_new_line();
|
| 1378 |
+
if (previous_ch === '{') {
|
| 1379 |
+
this._output.trim(true);
|
| 1380 |
+
}
|
| 1381 |
+
|
| 1382 |
+
if (insidePropertyValue) {
|
| 1383 |
+
this.outdent();
|
| 1384 |
+
insidePropertyValue = false;
|
| 1385 |
+
}
|
| 1386 |
+
this.print_string(this._ch);
|
| 1387 |
+
insideRule = false;
|
| 1388 |
+
if (this._nestedLevel) {
|
| 1389 |
+
this._nestedLevel--;
|
| 1390 |
+
}
|
| 1391 |
+
|
| 1392 |
+
this.eatWhitespace(true);
|
| 1393 |
+
this._output.add_new_line();
|
| 1394 |
+
|
| 1395 |
+
if (this._options.newline_between_rules && !this._output.just_added_blankline()) {
|
| 1396 |
+
if (this._input.peek() !== '}') {
|
| 1397 |
+
this._output.add_new_line(true);
|
| 1398 |
+
}
|
| 1399 |
+
}
|
| 1400 |
+
if (this._input.peek() === ')') {
|
| 1401 |
+
this._output.trim(true);
|
| 1402 |
+
if (this._options.brace_style === "expand") {
|
| 1403 |
+
this._output.add_new_line(true);
|
| 1404 |
+
}
|
| 1405 |
+
}
|
| 1406 |
+
} else if (this._ch === ":") {
|
| 1407 |
+
|
| 1408 |
+
for (var i = 0; i < this.NON_SEMICOLON_NEWLINE_PROPERTY.length; i++) {
|
| 1409 |
+
if (this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[i])) {
|
| 1410 |
+
insideNonSemiColonValues = true;
|
| 1411 |
+
break;
|
| 1412 |
+
}
|
| 1413 |
+
}
|
| 1414 |
+
|
| 1415 |
+
if ((insideRule || enteringConditionalGroup) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !insideNonNestedAtRule && parenLevel === 0) {
|
| 1416 |
+
// 'property: value' delimiter
|
| 1417 |
+
// which could be in a conditional group query
|
| 1418 |
+
|
| 1419 |
+
this.print_string(':');
|
| 1420 |
+
if (!insidePropertyValue) {
|
| 1421 |
+
insidePropertyValue = true;
|
| 1422 |
+
this._output.space_before_token = true;
|
| 1423 |
+
this.eatWhitespace(true);
|
| 1424 |
+
this.indent();
|
| 1425 |
+
}
|
| 1426 |
+
} else {
|
| 1427 |
+
// sass/less parent reference don't use a space
|
| 1428 |
+
// sass nested pseudo-class don't use a space
|
| 1429 |
+
|
| 1430 |
+
// preserve space before pseudoclasses/pseudoelements, as it means "in any child"
|
| 1431 |
+
if (this._input.lookBack(" ")) {
|
| 1432 |
+
this._output.space_before_token = true;
|
| 1433 |
+
}
|
| 1434 |
+
if (this._input.peek() === ":") {
|
| 1435 |
+
// pseudo-element
|
| 1436 |
+
this._ch = this._input.next();
|
| 1437 |
+
this.print_string("::");
|
| 1438 |
+
} else {
|
| 1439 |
+
// pseudo-class
|
| 1440 |
+
this.print_string(':');
|
| 1441 |
+
}
|
| 1442 |
+
}
|
| 1443 |
+
} else if (this._ch === '"' || this._ch === '\'') {
|
| 1444 |
+
var preserveQuoteSpace = previous_ch === '"' || previous_ch === '\'';
|
| 1445 |
+
this.preserveSingleSpace(preserveQuoteSpace || isAfterSpace);
|
| 1446 |
+
this.print_string(this._ch + this.eatString(this._ch));
|
| 1447 |
+
this.eatWhitespace(true);
|
| 1448 |
+
} else if (this._ch === ';') {
|
| 1449 |
+
insideNonSemiColonValues = false;
|
| 1450 |
+
if (parenLevel === 0) {
|
| 1451 |
+
if (insidePropertyValue) {
|
| 1452 |
+
this.outdent();
|
| 1453 |
+
insidePropertyValue = false;
|
| 1454 |
+
}
|
| 1455 |
+
insideNonNestedAtRule = false;
|
| 1456 |
+
this.print_string(this._ch);
|
| 1457 |
+
this.eatWhitespace(true);
|
| 1458 |
+
|
| 1459 |
+
// This maintains single line comments on the same
|
| 1460 |
+
// line. Block comments are also affected, but
|
| 1461 |
+
// a new line is always output before one inside
|
| 1462 |
+
// that section
|
| 1463 |
+
if (this._input.peek() !== '/') {
|
| 1464 |
+
this._output.add_new_line();
|
| 1465 |
+
}
|
| 1466 |
+
} else {
|
| 1467 |
+
this.print_string(this._ch);
|
| 1468 |
+
this.eatWhitespace(true);
|
| 1469 |
+
this._output.space_before_token = true;
|
| 1470 |
+
}
|
| 1471 |
+
} else if (this._ch === '(') { // may be a url
|
| 1472 |
+
if (this._input.lookBack("url")) {
|
| 1473 |
+
this.print_string(this._ch);
|
| 1474 |
+
this.eatWhitespace();
|
| 1475 |
+
parenLevel++;
|
| 1476 |
+
this.indent();
|
| 1477 |
+
this._ch = this._input.next();
|
| 1478 |
+
if (this._ch === ')' || this._ch === '"' || this._ch === '\'') {
|
| 1479 |
+
this._input.back();
|
| 1480 |
+
} else if (this._ch) {
|
| 1481 |
+
this.print_string(this._ch + this.eatString(')'));
|
| 1482 |
+
if (parenLevel) {
|
| 1483 |
+
parenLevel--;
|
| 1484 |
+
this.outdent();
|
| 1485 |
+
}
|
| 1486 |
+
}
|
| 1487 |
+
} else {
|
| 1488 |
+
var space_needed = false;
|
| 1489 |
+
if (this._input.lookBack("with")) {
|
| 1490 |
+
// look back is not an accurate solution, we need tokens to confirm without whitespaces
|
| 1491 |
+
space_needed = true;
|
| 1492 |
+
}
|
| 1493 |
+
this.preserveSingleSpace(isAfterSpace || space_needed);
|
| 1494 |
+
this.print_string(this._ch);
|
| 1495 |
+
|
| 1496 |
+
// handle scss/sass map
|
| 1497 |
+
if (insidePropertyValue && previous_ch === "$" && this._options.selector_separator_newline) {
|
| 1498 |
+
this._output.add_new_line();
|
| 1499 |
+
insideScssMap = true;
|
| 1500 |
+
} else {
|
| 1501 |
+
this.eatWhitespace();
|
| 1502 |
+
parenLevel++;
|
| 1503 |
+
this.indent();
|
| 1504 |
+
}
|
| 1505 |
+
}
|
| 1506 |
+
} else if (this._ch === ')') {
|
| 1507 |
+
if (parenLevel) {
|
| 1508 |
+
parenLevel--;
|
| 1509 |
+
this.outdent();
|
| 1510 |
+
}
|
| 1511 |
+
if (insideScssMap && this._input.peek() === ";" && this._options.selector_separator_newline) {
|
| 1512 |
+
insideScssMap = false;
|
| 1513 |
+
this.outdent();
|
| 1514 |
+
this._output.add_new_line();
|
| 1515 |
+
}
|
| 1516 |
+
this.print_string(this._ch);
|
| 1517 |
+
} else if (this._ch === ',') {
|
| 1518 |
+
this.print_string(this._ch);
|
| 1519 |
+
this.eatWhitespace(true);
|
| 1520 |
+
if (this._options.selector_separator_newline && (!insidePropertyValue || insideScssMap) && parenLevel === 0 && !insideNonNestedAtRule) {
|
| 1521 |
+
this._output.add_new_line();
|
| 1522 |
+
} else {
|
| 1523 |
+
this._output.space_before_token = true;
|
| 1524 |
+
}
|
| 1525 |
+
} else if ((this._ch === '>' || this._ch === '+' || this._ch === '~') && !insidePropertyValue && parenLevel === 0) {
|
| 1526 |
+
//handle combinator spacing
|
| 1527 |
+
if (this._options.space_around_combinator) {
|
| 1528 |
+
this._output.space_before_token = true;
|
| 1529 |
+
this.print_string(this._ch);
|
| 1530 |
+
this._output.space_before_token = true;
|
| 1531 |
+
} else {
|
| 1532 |
+
this.print_string(this._ch);
|
| 1533 |
+
this.eatWhitespace();
|
| 1534 |
+
// squash extra whitespace
|
| 1535 |
+
if (this._ch && whitespaceChar.test(this._ch)) {
|
| 1536 |
+
this._ch = '';
|
| 1537 |
+
}
|
| 1538 |
+
}
|
| 1539 |
+
} else if (this._ch === ']') {
|
| 1540 |
+
this.print_string(this._ch);
|
| 1541 |
+
} else if (this._ch === '[') {
|
| 1542 |
+
this.preserveSingleSpace(isAfterSpace);
|
| 1543 |
+
this.print_string(this._ch);
|
| 1544 |
+
} else if (this._ch === '=') { // no whitespace before or after
|
| 1545 |
+
this.eatWhitespace();
|
| 1546 |
+
this.print_string('=');
|
| 1547 |
+
if (whitespaceChar.test(this._ch)) {
|
| 1548 |
+
this._ch = '';
|
| 1549 |
+
}
|
| 1550 |
+
} else if (this._ch === '!' && !this._input.lookBack("\\")) { // !important
|
| 1551 |
+
this._output.space_before_token = true;
|
| 1552 |
+
this.print_string(this._ch);
|
| 1553 |
+
} else {
|
| 1554 |
+
var preserveAfterSpace = previous_ch === '"' || previous_ch === '\'';
|
| 1555 |
+
this.preserveSingleSpace(preserveAfterSpace || isAfterSpace);
|
| 1556 |
+
this.print_string(this._ch);
|
| 1557 |
+
|
| 1558 |
+
if (!this._output.just_added_newline() && this._input.peek() === '\n' && insideNonSemiColonValues) {
|
| 1559 |
+
this._output.add_new_line();
|
| 1560 |
+
}
|
| 1561 |
+
}
|
| 1562 |
+
}
|
| 1563 |
+
|
| 1564 |
+
var sweetCode = this._output.get_code(eol);
|
| 1565 |
+
|
| 1566 |
+
return sweetCode;
|
| 1567 |
+
};
|
| 1568 |
+
|
| 1569 |
+
module.exports.Beautifier = Beautifier;
|
| 1570 |
+
|
| 1571 |
+
|
| 1572 |
+
/***/ }),
|
| 1573 |
+
/* 17 */
|
| 1574 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
| 1575 |
+
|
| 1576 |
+
/*jshint node:true */
|
| 1577 |
+
/*
|
| 1578 |
+
|
| 1579 |
+
The MIT License (MIT)
|
| 1580 |
+
|
| 1581 |
+
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
|
| 1582 |
+
|
| 1583 |
+
Permission is hereby granted, free of charge, to any person
|
| 1584 |
+
obtaining a copy of this software and associated documentation files
|
| 1585 |
+
(the "Software"), to deal in the Software without restriction,
|
| 1586 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 1587 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 1588 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 1589 |
+
subject to the following conditions:
|
| 1590 |
+
|
| 1591 |
+
The above copyright notice and this permission notice shall be
|
| 1592 |
+
included in all copies or substantial portions of the Software.
|
| 1593 |
+
|
| 1594 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 1595 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 1596 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 1597 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 1598 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 1599 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 1600 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 1601 |
+
SOFTWARE.
|
| 1602 |
+
*/
|
| 1603 |
+
|
| 1604 |
+
|
| 1605 |
+
|
| 1606 |
+
var BaseOptions = (__webpack_require__(6).Options);
|
| 1607 |
+
|
| 1608 |
+
function Options(options) {
|
| 1609 |
+
BaseOptions.call(this, options, 'css');
|
| 1610 |
+
|
| 1611 |
+
this.selector_separator_newline = this._get_boolean('selector_separator_newline', true);
|
| 1612 |
+
this.newline_between_rules = this._get_boolean('newline_between_rules', true);
|
| 1613 |
+
var space_around_selector_separator = this._get_boolean('space_around_selector_separator');
|
| 1614 |
+
this.space_around_combinator = this._get_boolean('space_around_combinator') || space_around_selector_separator;
|
| 1615 |
+
|
| 1616 |
+
var brace_style_split = this._get_selection_list('brace_style', ['collapse', 'expand', 'end-expand', 'none', 'preserve-inline']);
|
| 1617 |
+
this.brace_style = 'collapse';
|
| 1618 |
+
for (var bs = 0; bs < brace_style_split.length; bs++) {
|
| 1619 |
+
if (brace_style_split[bs] !== 'expand') {
|
| 1620 |
+
// default to collapse, as only collapse|expand is implemented for now
|
| 1621 |
+
this.brace_style = 'collapse';
|
| 1622 |
+
} else {
|
| 1623 |
+
this.brace_style = brace_style_split[bs];
|
| 1624 |
+
}
|
| 1625 |
+
}
|
| 1626 |
+
}
|
| 1627 |
+
Options.prototype = new BaseOptions();
|
| 1628 |
+
|
| 1629 |
+
|
| 1630 |
+
|
| 1631 |
+
module.exports.Options = Options;
|
| 1632 |
+
|
| 1633 |
+
|
| 1634 |
+
/***/ })
|
| 1635 |
+
/******/ ]);
|
| 1636 |
+
/************************************************************************/
|
| 1637 |
+
/******/ // The module cache
|
| 1638 |
+
/******/ var __webpack_module_cache__ = {};
|
| 1639 |
+
/******/
|
| 1640 |
+
/******/ // The require function
|
| 1641 |
+
/******/ function __webpack_require__(moduleId) {
|
| 1642 |
+
/******/ // Check if module is in cache
|
| 1643 |
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
| 1644 |
+
/******/ if (cachedModule !== undefined) {
|
| 1645 |
+
/******/ return cachedModule.exports;
|
| 1646 |
+
/******/ }
|
| 1647 |
+
/******/ // Create a new module (and put it into the cache)
|
| 1648 |
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
| 1649 |
+
/******/ // no module.id needed
|
| 1650 |
+
/******/ // no module.loaded needed
|
| 1651 |
+
/******/ exports: {}
|
| 1652 |
+
/******/ };
|
| 1653 |
+
/******/
|
| 1654 |
+
/******/ // Execute the module function
|
| 1655 |
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
| 1656 |
+
/******/
|
| 1657 |
+
/******/ // Return the exports of the module
|
| 1658 |
+
/******/ return module.exports;
|
| 1659 |
+
/******/ }
|
| 1660 |
+
/******/
|
| 1661 |
+
/************************************************************************/
|
| 1662 |
+
/******/
|
| 1663 |
+
/******/ // startup
|
| 1664 |
+
/******/ // Load entry module and return exports
|
| 1665 |
+
/******/ // This entry module is referenced by other modules so it can't be inlined
|
| 1666 |
+
/******/ var __webpack_exports__ = __webpack_require__(15);
|
| 1667 |
+
/******/ legacy_beautify_css = __webpack_exports__;
|
| 1668 |
+
/******/
|
| 1669 |
+
/******/ })()
|
| 1670 |
+
;
|
| 1671 |
+
|
| 1672 |
+
export var css_beautify = legacy_beautify_css;
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/beautify/beautify-html.js
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/beautify/beautify.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
/*
|
| 6 |
+
* Mock for the JS formatter. Ignore formatting of JS content in HTML.
|
| 7 |
+
*/
|
| 8 |
+
export function js_beautify(js_source_text, options) {
|
| 9 |
+
// no formatting
|
| 10 |
+
return js_source_text;
|
| 11 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/htmlLanguageService.d.ts
CHANGED
|
@@ -1,3 +1,30 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Scanner, HTMLDocument, CompletionConfiguration, ICompletionParticipant, HTMLFormatConfiguration, DocumentContext, DocumentSymbol, IHTMLDataProvider, HTMLDataV1, LanguageServiceOptions, TextDocument, SelectionRange, WorkspaceEdit, Position, CompletionList, Hover, Range, SymbolInformation, TextEdit, DocumentHighlight, DocumentLink, FoldingRange, HoverSettings } from './htmlLanguageTypes';
|
| 2 |
+
export * from './htmlLanguageTypes';
|
| 3 |
+
export interface LanguageService {
|
| 4 |
+
setDataProviders(useDefaultDataProvider: boolean, customDataProviders: IHTMLDataProvider[]): void;
|
| 5 |
+
createScanner(input: string, initialOffset?: number): Scanner;
|
| 6 |
+
parseHTMLDocument(document: TextDocument): HTMLDocument;
|
| 7 |
+
findDocumentHighlights(document: TextDocument, position: Position, htmlDocument: HTMLDocument): DocumentHighlight[];
|
| 8 |
+
doComplete(document: TextDocument, position: Position, htmlDocument: HTMLDocument, options?: CompletionConfiguration): CompletionList;
|
| 9 |
+
doComplete2(document: TextDocument, position: Position, htmlDocument: HTMLDocument, documentContext: DocumentContext, options?: CompletionConfiguration): Promise<CompletionList>;
|
| 10 |
+
setCompletionParticipants(registeredCompletionParticipants: ICompletionParticipant[]): void;
|
| 11 |
+
doHover(document: TextDocument, position: Position, htmlDocument: HTMLDocument, options?: HoverSettings): Hover | null;
|
| 12 |
+
format(document: TextDocument, range: Range | undefined, options: HTMLFormatConfiguration): TextEdit[];
|
| 13 |
+
findDocumentLinks(document: TextDocument, documentContext: DocumentContext): DocumentLink[];
|
| 14 |
+
findDocumentSymbols(document: TextDocument, htmlDocument: HTMLDocument): SymbolInformation[];
|
| 15 |
+
findDocumentSymbols2(document: TextDocument, htmlDocument: HTMLDocument): DocumentSymbol[];
|
| 16 |
+
doQuoteComplete(document: TextDocument, position: Position, htmlDocument: HTMLDocument, options?: CompletionConfiguration): string | null;
|
| 17 |
+
doTagComplete(document: TextDocument, position: Position, htmlDocument: HTMLDocument): string | null;
|
| 18 |
+
getFoldingRanges(document: TextDocument, context?: {
|
| 19 |
+
rangeLimit?: number;
|
| 20 |
+
}): FoldingRange[];
|
| 21 |
+
getSelectionRanges(document: TextDocument, positions: Position[]): SelectionRange[];
|
| 22 |
+
doRename(document: TextDocument, position: Position, newName: string, htmlDocument: HTMLDocument): WorkspaceEdit | null;
|
| 23 |
+
findMatchingTagPosition(document: TextDocument, position: Position, htmlDocument: HTMLDocument): Position | null;
|
| 24 |
+
/** Deprecated, Use findLinkedEditingRanges instead */
|
| 25 |
+
findOnTypeRenameRanges(document: TextDocument, position: Position, htmlDocument: HTMLDocument): Range[] | null;
|
| 26 |
+
findLinkedEditingRanges(document: TextDocument, position: Position, htmlDocument: HTMLDocument): Range[] | null;
|
| 27 |
+
}
|
| 28 |
+
export declare function getLanguageService(options?: LanguageServiceOptions): LanguageService;
|
| 29 |
+
export declare function newHTMLDataProvider(id: string, customData: HTMLDataV1): IHTMLDataProvider;
|
| 30 |
+
export declare function getDefaultHTMLDataProvider(): IHTMLDataProvider;
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/htmlLanguageService.js
CHANGED
|
@@ -1,3 +1,59 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
import { createScanner } from './parser/htmlScanner';
|
| 6 |
+
import { HTMLParser } from './parser/htmlParser';
|
| 7 |
+
import { HTMLCompletion } from './services/htmlCompletion';
|
| 8 |
+
import { HTMLHover } from './services/htmlHover';
|
| 9 |
+
import { format } from './services/htmlFormatter';
|
| 10 |
+
import { HTMLDocumentLinks } from './services/htmlLinks';
|
| 11 |
+
import { findDocumentHighlights } from './services/htmlHighlighting';
|
| 12 |
+
import { findDocumentSymbols, findDocumentSymbols2 } from './services/htmlSymbolsProvider';
|
| 13 |
+
import { doRename } from './services/htmlRename';
|
| 14 |
+
import { findMatchingTagPosition } from './services/htmlMatchingTagPosition';
|
| 15 |
+
import { findLinkedEditingRanges } from './services/htmlLinkedEditing';
|
| 16 |
+
import { HTMLFolding } from './services/htmlFolding';
|
| 17 |
+
import { HTMLSelectionRange } from './services/htmlSelectionRange';
|
| 18 |
+
import { HTMLDataProvider } from './languageFacts/dataProvider';
|
| 19 |
+
import { HTMLDataManager } from './languageFacts/dataManager';
|
| 20 |
+
import { htmlData } from './languageFacts/data/webCustomData';
|
| 21 |
+
export * from './htmlLanguageTypes';
|
| 22 |
+
const defaultLanguageServiceOptions = {};
|
| 23 |
+
export function getLanguageService(options = defaultLanguageServiceOptions) {
|
| 24 |
+
const dataManager = new HTMLDataManager(options);
|
| 25 |
+
const htmlHover = new HTMLHover(options, dataManager);
|
| 26 |
+
const htmlCompletion = new HTMLCompletion(options, dataManager);
|
| 27 |
+
const htmlParser = new HTMLParser(dataManager);
|
| 28 |
+
const htmlSelectionRange = new HTMLSelectionRange(htmlParser);
|
| 29 |
+
const htmlFolding = new HTMLFolding(dataManager);
|
| 30 |
+
const htmlDocumentLinks = new HTMLDocumentLinks(dataManager);
|
| 31 |
+
return {
|
| 32 |
+
setDataProviders: dataManager.setDataProviders.bind(dataManager),
|
| 33 |
+
createScanner,
|
| 34 |
+
parseHTMLDocument: htmlParser.parseDocument.bind(htmlParser),
|
| 35 |
+
doComplete: htmlCompletion.doComplete.bind(htmlCompletion),
|
| 36 |
+
doComplete2: htmlCompletion.doComplete2.bind(htmlCompletion),
|
| 37 |
+
setCompletionParticipants: htmlCompletion.setCompletionParticipants.bind(htmlCompletion),
|
| 38 |
+
doHover: htmlHover.doHover.bind(htmlHover),
|
| 39 |
+
format,
|
| 40 |
+
findDocumentHighlights,
|
| 41 |
+
findDocumentLinks: htmlDocumentLinks.findDocumentLinks.bind(htmlDocumentLinks),
|
| 42 |
+
findDocumentSymbols,
|
| 43 |
+
findDocumentSymbols2,
|
| 44 |
+
getFoldingRanges: htmlFolding.getFoldingRanges.bind(htmlFolding),
|
| 45 |
+
getSelectionRanges: htmlSelectionRange.getSelectionRanges.bind(htmlSelectionRange),
|
| 46 |
+
doQuoteComplete: htmlCompletion.doQuoteComplete.bind(htmlCompletion),
|
| 47 |
+
doTagComplete: htmlCompletion.doTagComplete.bind(htmlCompletion),
|
| 48 |
+
doRename,
|
| 49 |
+
findMatchingTagPosition,
|
| 50 |
+
findOnTypeRenameRanges: findLinkedEditingRanges,
|
| 51 |
+
findLinkedEditingRanges
|
| 52 |
+
};
|
| 53 |
+
}
|
| 54 |
+
export function newHTMLDataProvider(id, customData) {
|
| 55 |
+
return new HTMLDataProvider(id, customData);
|
| 56 |
+
}
|
| 57 |
+
export function getDefaultHTMLDataProvider() {
|
| 58 |
+
return newHTMLDataProvider('default', htmlData);
|
| 59 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/htmlLanguageTypes.d.ts
CHANGED
|
@@ -1,3 +1,256 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Position, Range, Location, MarkupContent, MarkupKind, MarkedString, DocumentUri, SelectionRange, WorkspaceEdit, CompletionList, CompletionItemKind, CompletionItem, CompletionItemTag, InsertTextMode, Command, SymbolInformation, DocumentSymbol, SymbolKind, Hover, TextEdit, InsertReplaceEdit, InsertTextFormat, DocumentHighlight, DocumentHighlightKind, DocumentLink, FoldingRange, FoldingRangeKind, SignatureHelp, Definition, Diagnostic, FormattingOptions, Color, ColorInformation, ColorPresentation } from 'vscode-languageserver-types';
|
| 2 |
+
import { TextDocument } from 'vscode-languageserver-textdocument';
|
| 3 |
+
export { TextDocument, Position, Range, Location, MarkupContent, MarkupKind, MarkedString, DocumentUri, SelectionRange, WorkspaceEdit, CompletionList, CompletionItemKind, CompletionItem, CompletionItemTag, InsertTextMode, Command, SymbolInformation, DocumentSymbol, SymbolKind, Hover, TextEdit, InsertReplaceEdit, InsertTextFormat, DocumentHighlight, DocumentHighlightKind, DocumentLink, FoldingRange, FoldingRangeKind, SignatureHelp, Definition, Diagnostic, FormattingOptions, Color, ColorInformation, ColorPresentation };
|
| 4 |
+
export interface HTMLFormatConfiguration {
|
| 5 |
+
tabSize?: number;
|
| 6 |
+
insertSpaces?: boolean;
|
| 7 |
+
indentEmptyLines?: boolean;
|
| 8 |
+
wrapLineLength?: number;
|
| 9 |
+
unformatted?: string;
|
| 10 |
+
contentUnformatted?: string;
|
| 11 |
+
indentInnerHtml?: boolean;
|
| 12 |
+
wrapAttributes?: 'auto' | 'force' | 'force-aligned' | 'force-expand-multiline' | 'aligned-multiple' | 'preserve' | 'preserve-aligned';
|
| 13 |
+
wrapAttributesIndentSize?: number;
|
| 14 |
+
preserveNewLines?: boolean;
|
| 15 |
+
maxPreserveNewLines?: number;
|
| 16 |
+
indentHandlebars?: boolean;
|
| 17 |
+
endWithNewline?: boolean;
|
| 18 |
+
extraLiners?: string;
|
| 19 |
+
indentScripts?: 'keep' | 'separate' | 'normal';
|
| 20 |
+
templating?: ('auto' | 'none' | 'angular' | 'django' | 'erb' | 'handlebars' | 'php' | 'smarty')[] | boolean;
|
| 21 |
+
unformattedContentDelimiter?: string;
|
| 22 |
+
}
|
| 23 |
+
export interface HoverSettings {
|
| 24 |
+
documentation?: boolean;
|
| 25 |
+
references?: boolean;
|
| 26 |
+
}
|
| 27 |
+
export interface CompletionConfiguration {
|
| 28 |
+
[provider: string]: boolean | undefined | string;
|
| 29 |
+
hideAutoCompleteProposals?: boolean;
|
| 30 |
+
attributeDefaultValue?: 'empty' | 'singlequotes' | 'doublequotes';
|
| 31 |
+
}
|
| 32 |
+
export interface Node {
|
| 33 |
+
tag: string | undefined;
|
| 34 |
+
start: number;
|
| 35 |
+
startTagEnd: number | undefined;
|
| 36 |
+
end: number;
|
| 37 |
+
endTagStart: number | undefined;
|
| 38 |
+
children: Node[];
|
| 39 |
+
parent?: Node;
|
| 40 |
+
attributes?: {
|
| 41 |
+
[name: string]: string | null;
|
| 42 |
+
} | undefined;
|
| 43 |
+
}
|
| 44 |
+
export declare enum TokenType {
|
| 45 |
+
StartCommentTag = 0,
|
| 46 |
+
Comment = 1,
|
| 47 |
+
EndCommentTag = 2,
|
| 48 |
+
StartTagOpen = 3,
|
| 49 |
+
StartTagClose = 4,
|
| 50 |
+
StartTagSelfClose = 5,
|
| 51 |
+
StartTag = 6,
|
| 52 |
+
EndTagOpen = 7,
|
| 53 |
+
EndTagClose = 8,
|
| 54 |
+
EndTag = 9,
|
| 55 |
+
DelimiterAssign = 10,
|
| 56 |
+
AttributeName = 11,
|
| 57 |
+
AttributeValue = 12,
|
| 58 |
+
StartDoctypeTag = 13,
|
| 59 |
+
Doctype = 14,
|
| 60 |
+
EndDoctypeTag = 15,
|
| 61 |
+
Content = 16,
|
| 62 |
+
Whitespace = 17,
|
| 63 |
+
Unknown = 18,
|
| 64 |
+
Script = 19,
|
| 65 |
+
Styles = 20,
|
| 66 |
+
EOS = 21
|
| 67 |
+
}
|
| 68 |
+
export declare enum ScannerState {
|
| 69 |
+
WithinContent = 0,
|
| 70 |
+
AfterOpeningStartTag = 1,
|
| 71 |
+
AfterOpeningEndTag = 2,
|
| 72 |
+
WithinDoctype = 3,
|
| 73 |
+
WithinTag = 4,
|
| 74 |
+
WithinEndTag = 5,
|
| 75 |
+
WithinComment = 6,
|
| 76 |
+
WithinScriptContent = 7,
|
| 77 |
+
WithinStyleContent = 8,
|
| 78 |
+
AfterAttributeName = 9,
|
| 79 |
+
BeforeAttributeValue = 10
|
| 80 |
+
}
|
| 81 |
+
export interface Scanner {
|
| 82 |
+
scan(): TokenType;
|
| 83 |
+
getTokenType(): TokenType;
|
| 84 |
+
getTokenOffset(): number;
|
| 85 |
+
getTokenLength(): number;
|
| 86 |
+
getTokenEnd(): number;
|
| 87 |
+
getTokenText(): string;
|
| 88 |
+
getTokenError(): string | undefined;
|
| 89 |
+
getScannerState(): ScannerState;
|
| 90 |
+
}
|
| 91 |
+
export declare type HTMLDocument = {
|
| 92 |
+
roots: Node[];
|
| 93 |
+
findNodeBefore(offset: number): Node;
|
| 94 |
+
findNodeAt(offset: number): Node;
|
| 95 |
+
};
|
| 96 |
+
export interface DocumentContext {
|
| 97 |
+
resolveReference(ref: string, base: string): string | undefined;
|
| 98 |
+
}
|
| 99 |
+
export interface HtmlAttributeValueContext {
|
| 100 |
+
document: TextDocument;
|
| 101 |
+
position: Position;
|
| 102 |
+
tag: string;
|
| 103 |
+
attribute: string;
|
| 104 |
+
value: string;
|
| 105 |
+
range: Range;
|
| 106 |
+
}
|
| 107 |
+
export interface HtmlContentContext {
|
| 108 |
+
document: TextDocument;
|
| 109 |
+
position: Position;
|
| 110 |
+
}
|
| 111 |
+
export interface ICompletionParticipant {
|
| 112 |
+
onHtmlAttributeValue?: (context: HtmlAttributeValueContext) => void;
|
| 113 |
+
onHtmlContent?: (context: HtmlContentContext) => void;
|
| 114 |
+
}
|
| 115 |
+
export interface IReference {
|
| 116 |
+
name: string;
|
| 117 |
+
url: string;
|
| 118 |
+
}
|
| 119 |
+
export interface ITagData {
|
| 120 |
+
name: string;
|
| 121 |
+
description?: string | MarkupContent;
|
| 122 |
+
attributes: IAttributeData[];
|
| 123 |
+
references?: IReference[];
|
| 124 |
+
void?: boolean;
|
| 125 |
+
}
|
| 126 |
+
export interface IAttributeData {
|
| 127 |
+
name: string;
|
| 128 |
+
description?: string | MarkupContent;
|
| 129 |
+
valueSet?: string;
|
| 130 |
+
values?: IValueData[];
|
| 131 |
+
references?: IReference[];
|
| 132 |
+
}
|
| 133 |
+
export interface IValueData {
|
| 134 |
+
name: string;
|
| 135 |
+
description?: string | MarkupContent;
|
| 136 |
+
references?: IReference[];
|
| 137 |
+
}
|
| 138 |
+
export interface IValueSet {
|
| 139 |
+
name: string;
|
| 140 |
+
values: IValueData[];
|
| 141 |
+
}
|
| 142 |
+
export interface HTMLDataV1 {
|
| 143 |
+
version: 1 | 1.1;
|
| 144 |
+
tags?: ITagData[];
|
| 145 |
+
globalAttributes?: IAttributeData[];
|
| 146 |
+
valueSets?: IValueSet[];
|
| 147 |
+
}
|
| 148 |
+
export interface IHTMLDataProvider {
|
| 149 |
+
getId(): string;
|
| 150 |
+
isApplicable(languageId: string): boolean;
|
| 151 |
+
provideTags(): ITagData[];
|
| 152 |
+
provideAttributes(tag: string): IAttributeData[];
|
| 153 |
+
provideValues(tag: string, attribute: string): IValueData[];
|
| 154 |
+
}
|
| 155 |
+
/**
|
| 156 |
+
* Describes what LSP capabilities the client supports
|
| 157 |
+
*/
|
| 158 |
+
export interface ClientCapabilities {
|
| 159 |
+
/**
|
| 160 |
+
* The text document client capabilities
|
| 161 |
+
*/
|
| 162 |
+
textDocument?: {
|
| 163 |
+
/**
|
| 164 |
+
* Capabilities specific to completions.
|
| 165 |
+
*/
|
| 166 |
+
completion?: {
|
| 167 |
+
/**
|
| 168 |
+
* The client supports the following `CompletionItem` specific
|
| 169 |
+
* capabilities.
|
| 170 |
+
*/
|
| 171 |
+
completionItem?: {
|
| 172 |
+
/**
|
| 173 |
+
* Client supports the follow content formats for the documentation
|
| 174 |
+
* property. The order describes the preferred format of the client.
|
| 175 |
+
*/
|
| 176 |
+
documentationFormat?: MarkupKind[];
|
| 177 |
+
};
|
| 178 |
+
};
|
| 179 |
+
/**
|
| 180 |
+
* Capabilities specific to hovers.
|
| 181 |
+
*/
|
| 182 |
+
hover?: {
|
| 183 |
+
/**
|
| 184 |
+
* Client supports the follow content formats for the content
|
| 185 |
+
* property. The order describes the preferred format of the client.
|
| 186 |
+
*/
|
| 187 |
+
contentFormat?: MarkupKind[];
|
| 188 |
+
};
|
| 189 |
+
};
|
| 190 |
+
}
|
| 191 |
+
export declare namespace ClientCapabilities {
|
| 192 |
+
const LATEST: ClientCapabilities;
|
| 193 |
+
}
|
| 194 |
+
export interface LanguageServiceOptions {
|
| 195 |
+
/**
|
| 196 |
+
* Unless set to false, the default HTML data provider will be used
|
| 197 |
+
* along with the providers from customDataProviders.
|
| 198 |
+
* Defaults to true.
|
| 199 |
+
*/
|
| 200 |
+
useDefaultDataProvider?: boolean;
|
| 201 |
+
/**
|
| 202 |
+
* Provide data that could enhance the service's understanding of
|
| 203 |
+
* HTML tag / attribute / attribute-value
|
| 204 |
+
*/
|
| 205 |
+
customDataProviders?: IHTMLDataProvider[];
|
| 206 |
+
/**
|
| 207 |
+
* Abstract file system access away from the service.
|
| 208 |
+
* Used for path completion, etc.
|
| 209 |
+
*/
|
| 210 |
+
fileSystemProvider?: FileSystemProvider;
|
| 211 |
+
/**
|
| 212 |
+
* Describes the LSP capabilities the client supports.
|
| 213 |
+
*/
|
| 214 |
+
clientCapabilities?: ClientCapabilities;
|
| 215 |
+
}
|
| 216 |
+
export declare enum FileType {
|
| 217 |
+
/**
|
| 218 |
+
* The file type is unknown.
|
| 219 |
+
*/
|
| 220 |
+
Unknown = 0,
|
| 221 |
+
/**
|
| 222 |
+
* A regular file.
|
| 223 |
+
*/
|
| 224 |
+
File = 1,
|
| 225 |
+
/**
|
| 226 |
+
* A directory.
|
| 227 |
+
*/
|
| 228 |
+
Directory = 2,
|
| 229 |
+
/**
|
| 230 |
+
* A symbolic link to a file.
|
| 231 |
+
*/
|
| 232 |
+
SymbolicLink = 64
|
| 233 |
+
}
|
| 234 |
+
export interface FileStat {
|
| 235 |
+
/**
|
| 236 |
+
* The type of the file, e.g. is a regular file, a directory, or symbolic link
|
| 237 |
+
* to a file.
|
| 238 |
+
*/
|
| 239 |
+
type: FileType;
|
| 240 |
+
/**
|
| 241 |
+
* The creation timestamp in milliseconds elapsed since January 1, 1970 00:00:00 UTC.
|
| 242 |
+
*/
|
| 243 |
+
ctime: number;
|
| 244 |
+
/**
|
| 245 |
+
* The modification timestamp in milliseconds elapsed since January 1, 1970 00:00:00 UTC.
|
| 246 |
+
*/
|
| 247 |
+
mtime: number;
|
| 248 |
+
/**
|
| 249 |
+
* The size in bytes.
|
| 250 |
+
*/
|
| 251 |
+
size: number;
|
| 252 |
+
}
|
| 253 |
+
export interface FileSystemProvider {
|
| 254 |
+
stat(uri: DocumentUri): Promise<FileStat>;
|
| 255 |
+
readDirectory?(uri: DocumentUri): Promise<[string, FileType][]>;
|
| 256 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/htmlLanguageTypes.js
CHANGED
|
@@ -1,3 +1,80 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
import { Position, Range, Location, MarkupContent, MarkupKind, MarkedString, DocumentUri, SelectionRange, WorkspaceEdit, CompletionList, CompletionItemKind, CompletionItem, CompletionItemTag, InsertTextMode, Command, SymbolInformation, DocumentSymbol, SymbolKind, Hover, TextEdit, InsertReplaceEdit, InsertTextFormat, DocumentHighlight, DocumentHighlightKind, DocumentLink, FoldingRange, FoldingRangeKind, Diagnostic, FormattingOptions, Color, ColorInformation, ColorPresentation } from 'vscode-languageserver-types';
|
| 6 |
+
import { TextDocument } from 'vscode-languageserver-textdocument';
|
| 7 |
+
export { TextDocument, Position, Range, Location, MarkupContent, MarkupKind, MarkedString, DocumentUri, SelectionRange, WorkspaceEdit, CompletionList, CompletionItemKind, CompletionItem, CompletionItemTag, InsertTextMode, Command, SymbolInformation, DocumentSymbol, SymbolKind, Hover, TextEdit, InsertReplaceEdit, InsertTextFormat, DocumentHighlight, DocumentHighlightKind, DocumentLink, FoldingRange, FoldingRangeKind, Diagnostic, FormattingOptions, Color, ColorInformation, ColorPresentation };
|
| 8 |
+
export var TokenType;
|
| 9 |
+
(function (TokenType) {
|
| 10 |
+
TokenType[TokenType["StartCommentTag"] = 0] = "StartCommentTag";
|
| 11 |
+
TokenType[TokenType["Comment"] = 1] = "Comment";
|
| 12 |
+
TokenType[TokenType["EndCommentTag"] = 2] = "EndCommentTag";
|
| 13 |
+
TokenType[TokenType["StartTagOpen"] = 3] = "StartTagOpen";
|
| 14 |
+
TokenType[TokenType["StartTagClose"] = 4] = "StartTagClose";
|
| 15 |
+
TokenType[TokenType["StartTagSelfClose"] = 5] = "StartTagSelfClose";
|
| 16 |
+
TokenType[TokenType["StartTag"] = 6] = "StartTag";
|
| 17 |
+
TokenType[TokenType["EndTagOpen"] = 7] = "EndTagOpen";
|
| 18 |
+
TokenType[TokenType["EndTagClose"] = 8] = "EndTagClose";
|
| 19 |
+
TokenType[TokenType["EndTag"] = 9] = "EndTag";
|
| 20 |
+
TokenType[TokenType["DelimiterAssign"] = 10] = "DelimiterAssign";
|
| 21 |
+
TokenType[TokenType["AttributeName"] = 11] = "AttributeName";
|
| 22 |
+
TokenType[TokenType["AttributeValue"] = 12] = "AttributeValue";
|
| 23 |
+
TokenType[TokenType["StartDoctypeTag"] = 13] = "StartDoctypeTag";
|
| 24 |
+
TokenType[TokenType["Doctype"] = 14] = "Doctype";
|
| 25 |
+
TokenType[TokenType["EndDoctypeTag"] = 15] = "EndDoctypeTag";
|
| 26 |
+
TokenType[TokenType["Content"] = 16] = "Content";
|
| 27 |
+
TokenType[TokenType["Whitespace"] = 17] = "Whitespace";
|
| 28 |
+
TokenType[TokenType["Unknown"] = 18] = "Unknown";
|
| 29 |
+
TokenType[TokenType["Script"] = 19] = "Script";
|
| 30 |
+
TokenType[TokenType["Styles"] = 20] = "Styles";
|
| 31 |
+
TokenType[TokenType["EOS"] = 21] = "EOS";
|
| 32 |
+
})(TokenType || (TokenType = {}));
|
| 33 |
+
export var ScannerState;
|
| 34 |
+
(function (ScannerState) {
|
| 35 |
+
ScannerState[ScannerState["WithinContent"] = 0] = "WithinContent";
|
| 36 |
+
ScannerState[ScannerState["AfterOpeningStartTag"] = 1] = "AfterOpeningStartTag";
|
| 37 |
+
ScannerState[ScannerState["AfterOpeningEndTag"] = 2] = "AfterOpeningEndTag";
|
| 38 |
+
ScannerState[ScannerState["WithinDoctype"] = 3] = "WithinDoctype";
|
| 39 |
+
ScannerState[ScannerState["WithinTag"] = 4] = "WithinTag";
|
| 40 |
+
ScannerState[ScannerState["WithinEndTag"] = 5] = "WithinEndTag";
|
| 41 |
+
ScannerState[ScannerState["WithinComment"] = 6] = "WithinComment";
|
| 42 |
+
ScannerState[ScannerState["WithinScriptContent"] = 7] = "WithinScriptContent";
|
| 43 |
+
ScannerState[ScannerState["WithinStyleContent"] = 8] = "WithinStyleContent";
|
| 44 |
+
ScannerState[ScannerState["AfterAttributeName"] = 9] = "AfterAttributeName";
|
| 45 |
+
ScannerState[ScannerState["BeforeAttributeValue"] = 10] = "BeforeAttributeValue";
|
| 46 |
+
})(ScannerState || (ScannerState = {}));
|
| 47 |
+
export var ClientCapabilities;
|
| 48 |
+
(function (ClientCapabilities) {
|
| 49 |
+
ClientCapabilities.LATEST = {
|
| 50 |
+
textDocument: {
|
| 51 |
+
completion: {
|
| 52 |
+
completionItem: {
|
| 53 |
+
documentationFormat: [MarkupKind.Markdown, MarkupKind.PlainText]
|
| 54 |
+
}
|
| 55 |
+
},
|
| 56 |
+
hover: {
|
| 57 |
+
contentFormat: [MarkupKind.Markdown, MarkupKind.PlainText]
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
};
|
| 61 |
+
})(ClientCapabilities || (ClientCapabilities = {}));
|
| 62 |
+
export var FileType;
|
| 63 |
+
(function (FileType) {
|
| 64 |
+
/**
|
| 65 |
+
* The file type is unknown.
|
| 66 |
+
*/
|
| 67 |
+
FileType[FileType["Unknown"] = 0] = "Unknown";
|
| 68 |
+
/**
|
| 69 |
+
* A regular file.
|
| 70 |
+
*/
|
| 71 |
+
FileType[FileType["File"] = 1] = "File";
|
| 72 |
+
/**
|
| 73 |
+
* A directory.
|
| 74 |
+
*/
|
| 75 |
+
FileType[FileType["Directory"] = 2] = "Directory";
|
| 76 |
+
/**
|
| 77 |
+
* A symbolic link to a file.
|
| 78 |
+
*/
|
| 79 |
+
FileType[FileType["SymbolicLink"] = 64] = "SymbolicLink";
|
| 80 |
+
})(FileType || (FileType = {}));
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/languageFacts/data/webCustomData.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
size 97
|
|
|
|
| 1 |
+
import { HTMLDataV1 } from '../../htmlLanguageTypes';
|
| 2 |
+
export declare const htmlData: HTMLDataV1;
|
|
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/languageFacts/data/webCustomData.js
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/languageFacts/dataManager.js
CHANGED
|
@@ -1,3 +1,77 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
import { HTMLDataProvider } from './dataProvider';
|
| 6 |
+
import { htmlData } from './data/webCustomData';
|
| 7 |
+
import * as arrays from '../utils/arrays';
|
| 8 |
+
export class HTMLDataManager {
|
| 9 |
+
constructor(options) {
|
| 10 |
+
this.dataProviders = [];
|
| 11 |
+
this.setDataProviders(options.useDefaultDataProvider !== false, options.customDataProviders || []);
|
| 12 |
+
}
|
| 13 |
+
setDataProviders(builtIn, providers) {
|
| 14 |
+
this.dataProviders = [];
|
| 15 |
+
if (builtIn) {
|
| 16 |
+
this.dataProviders.push(new HTMLDataProvider('html5', htmlData));
|
| 17 |
+
}
|
| 18 |
+
this.dataProviders.push(...providers);
|
| 19 |
+
}
|
| 20 |
+
getDataProviders() {
|
| 21 |
+
return this.dataProviders;
|
| 22 |
+
}
|
| 23 |
+
isVoidElement(e, voidElements) {
|
| 24 |
+
return !!e && arrays.binarySearch(voidElements, e.toLowerCase(), (s1, s2) => s1.localeCompare(s2)) >= 0;
|
| 25 |
+
}
|
| 26 |
+
getVoidElements(languageOrProviders) {
|
| 27 |
+
const dataProviders = Array.isArray(languageOrProviders) ? languageOrProviders : this.getDataProviders().filter(p => p.isApplicable(languageOrProviders));
|
| 28 |
+
const voidTags = [];
|
| 29 |
+
dataProviders.forEach((provider) => {
|
| 30 |
+
provider.provideTags().filter(tag => tag.void).forEach(tag => voidTags.push(tag.name));
|
| 31 |
+
});
|
| 32 |
+
return voidTags.sort();
|
| 33 |
+
}
|
| 34 |
+
isPathAttribute(tag, attr) {
|
| 35 |
+
// should eventually come from custom data
|
| 36 |
+
if (attr === 'src' || attr === 'href') {
|
| 37 |
+
return true;
|
| 38 |
+
}
|
| 39 |
+
const a = PATH_TAG_AND_ATTR[tag];
|
| 40 |
+
if (a) {
|
| 41 |
+
if (typeof a === 'string') {
|
| 42 |
+
return a === attr;
|
| 43 |
+
}
|
| 44 |
+
else {
|
| 45 |
+
return a.indexOf(attr) !== -1;
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
return false;
|
| 49 |
+
}
|
| 50 |
+
}
|
| 51 |
+
// Selected from https://stackoverflow.com/a/2725168/1780148
|
| 52 |
+
const PATH_TAG_AND_ATTR = {
|
| 53 |
+
// HTML 4
|
| 54 |
+
a: 'href',
|
| 55 |
+
area: 'href',
|
| 56 |
+
body: 'background',
|
| 57 |
+
blockquote: 'cite',
|
| 58 |
+
del: 'cite',
|
| 59 |
+
form: 'action',
|
| 60 |
+
frame: ['src', 'longdesc'],
|
| 61 |
+
img: ['src', 'longdesc'],
|
| 62 |
+
ins: 'cite',
|
| 63 |
+
link: 'href',
|
| 64 |
+
object: 'data',
|
| 65 |
+
q: 'cite',
|
| 66 |
+
script: 'src',
|
| 67 |
+
// HTML 5
|
| 68 |
+
audio: 'src',
|
| 69 |
+
button: 'formaction',
|
| 70 |
+
command: 'icon',
|
| 71 |
+
embed: 'src',
|
| 72 |
+
html: 'manifest',
|
| 73 |
+
input: ['src', 'formaction'],
|
| 74 |
+
source: 'src',
|
| 75 |
+
track: 'src',
|
| 76 |
+
video: ['src', 'poster']
|
| 77 |
+
};
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/languageFacts/dataProvider.js
CHANGED
|
@@ -1,3 +1,112 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
import { normalizeMarkupContent } from '../utils/markup';
|
| 6 |
+
export class HTMLDataProvider {
|
| 7 |
+
isApplicable() {
|
| 8 |
+
return true;
|
| 9 |
+
}
|
| 10 |
+
/**
|
| 11 |
+
* Currently, unversioned data uses the V1 implementation
|
| 12 |
+
* In the future when the provider handles multiple versions of HTML custom data,
|
| 13 |
+
* use the latest implementation for unversioned data
|
| 14 |
+
*/
|
| 15 |
+
constructor(id, customData) {
|
| 16 |
+
this.id = id;
|
| 17 |
+
this._tags = [];
|
| 18 |
+
this._tagMap = {};
|
| 19 |
+
this._valueSetMap = {};
|
| 20 |
+
this._tags = customData.tags || [];
|
| 21 |
+
this._globalAttributes = customData.globalAttributes || [];
|
| 22 |
+
this._tags.forEach(t => {
|
| 23 |
+
this._tagMap[t.name.toLowerCase()] = t;
|
| 24 |
+
});
|
| 25 |
+
if (customData.valueSets) {
|
| 26 |
+
customData.valueSets.forEach(vs => {
|
| 27 |
+
this._valueSetMap[vs.name] = vs.values;
|
| 28 |
+
});
|
| 29 |
+
}
|
| 30 |
+
}
|
| 31 |
+
getId() {
|
| 32 |
+
return this.id;
|
| 33 |
+
}
|
| 34 |
+
provideTags() {
|
| 35 |
+
return this._tags;
|
| 36 |
+
}
|
| 37 |
+
provideAttributes(tag) {
|
| 38 |
+
const attributes = [];
|
| 39 |
+
const processAttribute = (a) => {
|
| 40 |
+
attributes.push(a);
|
| 41 |
+
};
|
| 42 |
+
const tagEntry = this._tagMap[tag.toLowerCase()];
|
| 43 |
+
if (tagEntry) {
|
| 44 |
+
tagEntry.attributes.forEach(processAttribute);
|
| 45 |
+
}
|
| 46 |
+
this._globalAttributes.forEach(processAttribute);
|
| 47 |
+
return attributes;
|
| 48 |
+
}
|
| 49 |
+
provideValues(tag, attribute) {
|
| 50 |
+
const values = [];
|
| 51 |
+
attribute = attribute.toLowerCase();
|
| 52 |
+
const processAttributes = (attributes) => {
|
| 53 |
+
attributes.forEach(a => {
|
| 54 |
+
if (a.name.toLowerCase() === attribute) {
|
| 55 |
+
if (a.values) {
|
| 56 |
+
a.values.forEach(v => {
|
| 57 |
+
values.push(v);
|
| 58 |
+
});
|
| 59 |
+
}
|
| 60 |
+
if (a.valueSet) {
|
| 61 |
+
if (this._valueSetMap[a.valueSet]) {
|
| 62 |
+
this._valueSetMap[a.valueSet].forEach(v => {
|
| 63 |
+
values.push(v);
|
| 64 |
+
});
|
| 65 |
+
}
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
});
|
| 69 |
+
};
|
| 70 |
+
const tagEntry = this._tagMap[tag.toLowerCase()];
|
| 71 |
+
if (tagEntry) {
|
| 72 |
+
processAttributes(tagEntry.attributes);
|
| 73 |
+
}
|
| 74 |
+
processAttributes(this._globalAttributes);
|
| 75 |
+
return values;
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
/**
|
| 79 |
+
* Generate Documentation used in hover/complete
|
| 80 |
+
* From `documentation` and `references`
|
| 81 |
+
*/
|
| 82 |
+
export function generateDocumentation(item, settings = {}, doesSupportMarkdown) {
|
| 83 |
+
const result = {
|
| 84 |
+
kind: doesSupportMarkdown ? 'markdown' : 'plaintext',
|
| 85 |
+
value: ''
|
| 86 |
+
};
|
| 87 |
+
if (item.description && settings.documentation !== false) {
|
| 88 |
+
const normalizedDescription = normalizeMarkupContent(item.description);
|
| 89 |
+
if (normalizedDescription) {
|
| 90 |
+
result.value += normalizedDescription.value;
|
| 91 |
+
}
|
| 92 |
+
}
|
| 93 |
+
if (item.references && item.references.length > 0 && settings.references !== false) {
|
| 94 |
+
if (result.value.length) {
|
| 95 |
+
result.value += `\n\n`;
|
| 96 |
+
}
|
| 97 |
+
if (doesSupportMarkdown) {
|
| 98 |
+
result.value += item.references.map(r => {
|
| 99 |
+
return `[${r.name}](${r.url})`;
|
| 100 |
+
}).join(' | ');
|
| 101 |
+
}
|
| 102 |
+
else {
|
| 103 |
+
result.value += item.references.map(r => {
|
| 104 |
+
return `${r.name}: ${r.url}`;
|
| 105 |
+
}).join('\n');
|
| 106 |
+
}
|
| 107 |
+
}
|
| 108 |
+
if (result.value === '') {
|
| 109 |
+
return undefined;
|
| 110 |
+
}
|
| 111 |
+
return result;
|
| 112 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.w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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
/**
|
| 6 |
+
* HTML 5 character entities
|
| 7 |
+
* https://www.w3.org/TR/html5/syntax.html#named-character-references
|
| 8 |
+
*/
|
| 9 |
+
export const entities = {
|
| 10 |
+
"Aacute;": "\u00C1",
|
| 11 |
+
"Aacute": "\u00C1",
|
| 12 |
+
"aacute;": "\u00E1",
|
| 13 |
+
"aacute": "\u00E1",
|
| 14 |
+
"Abreve;": "\u0102",
|
| 15 |
+
"abreve;": "\u0103",
|
| 16 |
+
"ac;": "\u223E",
|
| 17 |
+
"acd;": "\u223F",
|
| 18 |
+
"acE;": "\u223E\u0333",
|
| 19 |
+
"Acirc;": "\u00C2",
|
| 20 |
+
"Acirc": "\u00C2",
|
| 21 |
+
"acirc;": "\u00E2",
|
| 22 |
+
"acirc": "\u00E2",
|
| 23 |
+
"acute;": "\u00B4",
|
| 24 |
+
"acute": "\u00B4",
|
| 25 |
+
"Acy;": "\u0410",
|
| 26 |
+
"acy;": "\u0430",
|
| 27 |
+
"AElig;": "\u00C6",
|
| 28 |
+
"AElig": "\u00C6",
|
| 29 |
+
"aelig;": "\u00E6",
|
| 30 |
+
"aelig": "\u00E6",
|
| 31 |
+
"af;": "\u2061",
|
| 32 |
+
"Afr;": "\uD835\uDD04",
|
| 33 |
+
"afr;": "\uD835\uDD1E",
|
| 34 |
+
"Agrave;": "\u00C0",
|
| 35 |
+
"Agrave": "\u00C0",
|
| 36 |
+
"agrave;": "\u00E0",
|
| 37 |
+
"agrave": "\u00E0",
|
| 38 |
+
"alefsym;": "\u2135",
|
| 39 |
+
"aleph;": "\u2135",
|
| 40 |
+
"Alpha;": "\u0391",
|
| 41 |
+
"alpha;": "\u03B1",
|
| 42 |
+
"Amacr;": "\u0100",
|
| 43 |
+
"amacr;": "\u0101",
|
| 44 |
+
"amalg;": "\u2A3F",
|
| 45 |
+
"AMP;": "\u0026",
|
| 46 |
+
"AMP": "\u0026",
|
| 47 |
+
"amp;": "\u0026",
|
| 48 |
+
"amp": "\u0026",
|
| 49 |
+
"And;": "\u2A53",
|
| 50 |
+
"and;": "\u2227",
|
| 51 |
+
"andand;": "\u2A55",
|
| 52 |
+
"andd;": "\u2A5C",
|
| 53 |
+
"andslope;": "\u2A58",
|
| 54 |
+
"andv;": "\u2A5A",
|
| 55 |
+
"ang;": "\u2220",
|
| 56 |
+
"ange;": "\u29A4",
|
| 57 |
+
"angle;": "\u2220",
|
| 58 |
+
"angmsd;": "\u2221",
|
| 59 |
+
"angmsdaa;": "\u29A8",
|
| 60 |
+
"angmsdab;": "\u29A9",
|
| 61 |
+
"angmsdac;": "\u29AA",
|
| 62 |
+
"angmsdad;": "\u29AB",
|
| 63 |
+
"angmsdae;": "\u29AC",
|
| 64 |
+
"angmsdaf;": "\u29AD",
|
| 65 |
+
"angmsdag;": "\u29AE",
|
| 66 |
+
"angmsdah;": "\u29AF",
|
| 67 |
+
"angrt;": "\u221F",
|
| 68 |
+
"angrtvb;": "\u22BE",
|
| 69 |
+
"angrtvbd;": "\u299D",
|
| 70 |
+
"angsph;": "\u2222",
|
| 71 |
+
"angst;": "\u00C5",
|
| 72 |
+
"angzarr;": "\u237C",
|
| 73 |
+
"Aogon;": "\u0104",
|
| 74 |
+
"aogon;": "\u0105",
|
| 75 |
+
"Aopf;": "\uD835\uDD38",
|
| 76 |
+
"aopf;": "\uD835\uDD52",
|
| 77 |
+
"ap;": "\u2248",
|
| 78 |
+
"apacir;": "\u2A6F",
|
| 79 |
+
"apE;": "\u2A70",
|
| 80 |
+
"ape;": "\u224A",
|
| 81 |
+
"apid;": "\u224B",
|
| 82 |
+
"apos;": "\u0027",
|
| 83 |
+
"ApplyFunction;": "\u2061",
|
| 84 |
+
"approx;": "\u2248",
|
| 85 |
+
"approxeq;": "\u224A",
|
| 86 |
+
"Aring;": "\u00C5",
|
| 87 |
+
"Aring": "\u00C5",
|
| 88 |
+
"aring;": "\u00E5",
|
| 89 |
+
"aring": "\u00E5",
|
| 90 |
+
"Ascr;": "\uD835\uDC9C",
|
| 91 |
+
"ascr;": "\uD835\uDCB6",
|
| 92 |
+
"Assign;": "\u2254",
|
| 93 |
+
"ast;": "\u002A",
|
| 94 |
+
"asymp;": "\u2248",
|
| 95 |
+
"asympeq;": "\u224D",
|
| 96 |
+
"Atilde;": "\u00C3",
|
| 97 |
+
"Atilde": "\u00C3",
|
| 98 |
+
"atilde;": "\u00E3",
|
| 99 |
+
"atilde": "\u00E3",
|
| 100 |
+
"Auml;": "\u00C4",
|
| 101 |
+
"Auml": "\u00C4",
|
| 102 |
+
"auml;": "\u00E4",
|
| 103 |
+
"auml": "\u00E4",
|
| 104 |
+
"awconint;": "\u2233",
|
| 105 |
+
"awint;": "\u2A11",
|
| 106 |
+
"backcong;": "\u224C",
|
| 107 |
+
"backepsilon;": "\u03F6",
|
| 108 |
+
"backprime;": "\u2035",
|
| 109 |
+
"backsim;": "\u223D",
|
| 110 |
+
"backsimeq;": "\u22CD",
|
| 111 |
+
"Backslash;": "\u2216",
|
| 112 |
+
"Barv;": "\u2AE7",
|
| 113 |
+
"barvee;": "\u22BD",
|
| 114 |
+
"Barwed;": "\u2306",
|
| 115 |
+
"barwed;": "\u2305",
|
| 116 |
+
"barwedge;": "\u2305",
|
| 117 |
+
"bbrk;": "\u23B5",
|
| 118 |
+
"bbrktbrk;": "\u23B6",
|
| 119 |
+
"bcong;": "\u224C",
|
| 120 |
+
"Bcy;": "\u0411",
|
| 121 |
+
"bcy;": "\u0431",
|
| 122 |
+
"bdquo;": "\u201E",
|
| 123 |
+
"becaus;": "\u2235",
|
| 124 |
+
"Because;": "\u2235",
|
| 125 |
+
"because;": "\u2235",
|
| 126 |
+
"bemptyv;": "\u29B0",
|
| 127 |
+
"bepsi;": "\u03F6",
|
| 128 |
+
"bernou;": "\u212C",
|
| 129 |
+
"Bernoullis;": "\u212C",
|
| 130 |
+
"Beta;": "\u0392",
|
| 131 |
+
"beta;": "\u03B2",
|
| 132 |
+
"beth;": "\u2136",
|
| 133 |
+
"between;": "\u226C",
|
| 134 |
+
"Bfr;": "\uD835\uDD05",
|
| 135 |
+
"bfr;": "\uD835\uDD1F",
|
| 136 |
+
"bigcap;": "\u22C2",
|
| 137 |
+
"bigcirc;": "\u25EF",
|
| 138 |
+
"bigcup;": "\u22C3",
|
| 139 |
+
"bigodot;": "\u2A00",
|
| 140 |
+
"bigoplus;": "\u2A01",
|
| 141 |
+
"bigotimes;": "\u2A02",
|
| 142 |
+
"bigsqcup;": "\u2A06",
|
| 143 |
+
"bigstar;": "\u2605",
|
| 144 |
+
"bigtriangledown;": "\u25BD",
|
| 145 |
+
"bigtriangleup;": "\u25B3",
|
| 146 |
+
"biguplus;": "\u2A04",
|
| 147 |
+
"bigvee;": "\u22C1",
|
| 148 |
+
"bigwedge;": "\u22C0",
|
| 149 |
+
"bkarow;": "\u290D",
|
| 150 |
+
"blacklozenge;": "\u29EB",
|
| 151 |
+
"blacksquare;": "\u25AA",
|
| 152 |
+
"blacktriangle;": "\u25B4",
|
| 153 |
+
"blacktriangledown;": "\u25BE",
|
| 154 |
+
"blacktriangleleft;": "\u25C2",
|
| 155 |
+
"blacktriangleright;": "\u25B8",
|
| 156 |
+
"blank;": "\u2423",
|
| 157 |
+
"blk12;": "\u2592",
|
| 158 |
+
"blk14;": "\u2591",
|
| 159 |
+
"blk34;": "\u2593",
|
| 160 |
+
"block;": "\u2588",
|
| 161 |
+
"bne;": "\u003D\u20E5",
|
| 162 |
+
"bnequiv;": "\u2261\u20E5",
|
| 163 |
+
"bNot;": "\u2AED",
|
| 164 |
+
"bnot;": "\u2310",
|
| 165 |
+
"Bopf;": "\uD835\uDD39",
|
| 166 |
+
"bopf;": "\uD835\uDD53",
|
| 167 |
+
"bot;": "\u22A5",
|
| 168 |
+
"bottom;": "\u22A5",
|
| 169 |
+
"bowtie;": "\u22C8",
|
| 170 |
+
"boxbox;": "\u29C9",
|
| 171 |
+
"boxDL;": "\u2557",
|
| 172 |
+
"boxDl;": "\u2556",
|
| 173 |
+
"boxdL;": "\u2555",
|
| 174 |
+
"boxdl;": "\u2510",
|
| 175 |
+
"boxDR;": "\u2554",
|
| 176 |
+
"boxDr;": "\u2553",
|
| 177 |
+
"boxdR;": "\u2552",
|
| 178 |
+
"boxdr;": "\u250C",
|
| 179 |
+
"boxH;": "\u2550",
|
| 180 |
+
"boxh;": "\u2500",
|
| 181 |
+
"boxHD;": "\u2566",
|
| 182 |
+
"boxHd;": "\u2564",
|
| 183 |
+
"boxhD;": "\u2565",
|
| 184 |
+
"boxhd;": "\u252C",
|
| 185 |
+
"boxHU;": "\u2569",
|
| 186 |
+
"boxHu;": "\u2567",
|
| 187 |
+
"boxhU;": "\u2568",
|
| 188 |
+
"boxhu;": "\u2534",
|
| 189 |
+
"boxminus;": "\u229F",
|
| 190 |
+
"boxplus;": "\u229E",
|
| 191 |
+
"boxtimes;": "\u22A0",
|
| 192 |
+
"boxUL;": "\u255D",
|
| 193 |
+
"boxUl;": "\u255C",
|
| 194 |
+
"boxuL;": "\u255B",
|
| 195 |
+
"boxul;": "\u2518",
|
| 196 |
+
"boxUR;": "\u255A",
|
| 197 |
+
"boxUr;": "\u2559",
|
| 198 |
+
"boxuR;": "\u2558",
|
| 199 |
+
"boxur;": "\u2514",
|
| 200 |
+
"boxV;": "\u2551",
|
| 201 |
+
"boxv;": "\u2502",
|
| 202 |
+
"boxVH;": "\u256C",
|
| 203 |
+
"boxVh;": "\u256B",
|
| 204 |
+
"boxvH;": "\u256A",
|
| 205 |
+
"boxvh;": "\u253C",
|
| 206 |
+
"boxVL;": "\u2563",
|
| 207 |
+
"boxVl;": "\u2562",
|
| 208 |
+
"boxvL;": "\u2561",
|
| 209 |
+
"boxvl;": "\u2524",
|
| 210 |
+
"boxVR;": "\u2560",
|
| 211 |
+
"boxVr;": "\u255F",
|
| 212 |
+
"boxvR;": "\u255E",
|
| 213 |
+
"boxvr;": "\u251C",
|
| 214 |
+
"bprime;": "\u2035",
|
| 215 |
+
"Breve;": "\u02D8",
|
| 216 |
+
"breve;": "\u02D8",
|
| 217 |
+
"brvbar;": "\u00A6",
|
| 218 |
+
"brvbar": "\u00A6",
|
| 219 |
+
"Bscr;": "\u212C",
|
| 220 |
+
"bscr;": "\uD835\uDCB7",
|
| 221 |
+
"bsemi;": "\u204F",
|
| 222 |
+
"bsim;": "\u223D",
|
| 223 |
+
"bsime;": "\u22CD",
|
| 224 |
+
"bsol;": "\u005C",
|
| 225 |
+
"bsolb;": "\u29C5",
|
| 226 |
+
"bsolhsub;": "\u27C8",
|
| 227 |
+
"bull;": "\u2022",
|
| 228 |
+
"bullet;": "\u2022",
|
| 229 |
+
"bump;": "\u224E",
|
| 230 |
+
"bumpE;": "\u2AAE",
|
| 231 |
+
"bumpe;": "\u224F",
|
| 232 |
+
"Bumpeq;": "\u224E",
|
| 233 |
+
"bumpeq;": "\u224F",
|
| 234 |
+
"Cacute;": "\u0106",
|
| 235 |
+
"cacute;": "\u0107",
|
| 236 |
+
"Cap;": "\u22D2",
|
| 237 |
+
"cap;": "\u2229",
|
| 238 |
+
"capand;": "\u2A44",
|
| 239 |
+
"capbrcup;": "\u2A49",
|
| 240 |
+
"capcap;": "\u2A4B",
|
| 241 |
+
"capcup;": "\u2A47",
|
| 242 |
+
"capdot;": "\u2A40",
|
| 243 |
+
"CapitalDifferentialD;": "\u2145",
|
| 244 |
+
"caps;": "\u2229\uFE00",
|
| 245 |
+
"caret;": "\u2041",
|
| 246 |
+
"caron;": "\u02C7",
|
| 247 |
+
"Cayleys;": "\u212D",
|
| 248 |
+
"ccaps;": "\u2A4D",
|
| 249 |
+
"Ccaron;": "\u010C",
|
| 250 |
+
"ccaron;": "\u010D",
|
| 251 |
+
"Ccedil;": "\u00C7",
|
| 252 |
+
"Ccedil": "\u00C7",
|
| 253 |
+
"ccedil;": "\u00E7",
|
| 254 |
+
"ccedil": "\u00E7",
|
| 255 |
+
"Ccirc;": "\u0108",
|
| 256 |
+
"ccirc;": "\u0109",
|
| 257 |
+
"Cconint;": "\u2230",
|
| 258 |
+
"ccups;": "\u2A4C",
|
| 259 |
+
"ccupssm;": "\u2A50",
|
| 260 |
+
"Cdot;": "\u010A",
|
| 261 |
+
"cdot;": "\u010B",
|
| 262 |
+
"cedil;": "\u00B8",
|
| 263 |
+
"cedil": "\u00B8",
|
| 264 |
+
"Cedilla;": "\u00B8",
|
| 265 |
+
"cemptyv;": "\u29B2",
|
| 266 |
+
"cent;": "\u00A2",
|
| 267 |
+
"cent": "\u00A2",
|
| 268 |
+
"CenterDot;": "\u00B7",
|
| 269 |
+
"centerdot;": "\u00B7",
|
| 270 |
+
"Cfr;": "\u212D",
|
| 271 |
+
"cfr;": "\uD835\uDD20",
|
| 272 |
+
"CHcy;": "\u0427",
|
| 273 |
+
"chcy;": "\u0447",
|
| 274 |
+
"check;": "\u2713",
|
| 275 |
+
"checkmark;": "\u2713",
|
| 276 |
+
"Chi;": "\u03A7",
|
| 277 |
+
"chi;": "\u03C7",
|
| 278 |
+
"cir;": "\u25CB",
|
| 279 |
+
"circ;": "\u02C6",
|
| 280 |
+
"circeq;": "\u2257",
|
| 281 |
+
"circlearrowleft;": "\u21BA",
|
| 282 |
+
"circlearrowright;": "\u21BB",
|
| 283 |
+
"circledast;": "\u229B",
|
| 284 |
+
"circledcirc;": "\u229A",
|
| 285 |
+
"circleddash;": "\u229D",
|
| 286 |
+
"CircleDot;": "\u2299",
|
| 287 |
+
"circledR;": "\u00AE",
|
| 288 |
+
"circledS;": "\u24C8",
|
| 289 |
+
"CircleMinus;": "\u2296",
|
| 290 |
+
"CirclePlus;": "\u2295",
|
| 291 |
+
"CircleTimes;": "\u2297",
|
| 292 |
+
"cirE;": "\u29C3",
|
| 293 |
+
"cire;": "\u2257",
|
| 294 |
+
"cirfnint;": "\u2A10",
|
| 295 |
+
"cirmid;": "\u2AEF",
|
| 296 |
+
"cirscir;": "\u29C2",
|
| 297 |
+
"ClockwiseContourIntegral;": "\u2232",
|
| 298 |
+
"CloseCurlyDoubleQuote;": "\u201D",
|
| 299 |
+
"CloseCurlyQuote;": "\u2019",
|
| 300 |
+
"clubs;": "\u2663",
|
| 301 |
+
"clubsuit;": "\u2663",
|
| 302 |
+
"Colon;": "\u2237",
|
| 303 |
+
"colon;": "\u003A",
|
| 304 |
+
"Colone;": "\u2A74",
|
| 305 |
+
"colone;": "\u2254",
|
| 306 |
+
"coloneq;": "\u2254",
|
| 307 |
+
"comma;": "\u002C",
|
| 308 |
+
"commat;": "\u0040",
|
| 309 |
+
"comp;": "\u2201",
|
| 310 |
+
"compfn;": "\u2218",
|
| 311 |
+
"complement;": "\u2201",
|
| 312 |
+
"complexes;": "\u2102",
|
| 313 |
+
"cong;": "\u2245",
|
| 314 |
+
"congdot;": "\u2A6D",
|
| 315 |
+
"Congruent;": "\u2261",
|
| 316 |
+
"Conint;": "\u222F",
|
| 317 |
+
"conint;": "\u222E",
|
| 318 |
+
"ContourIntegral;": "\u222E",
|
| 319 |
+
"Copf;": "\u2102",
|
| 320 |
+
"copf;": "\uD835\uDD54",
|
| 321 |
+
"coprod;": "\u2210",
|
| 322 |
+
"Coproduct;": "\u2210",
|
| 323 |
+
"COPY;": "\u00A9",
|
| 324 |
+
"COPY": "\u00A9",
|
| 325 |
+
"copy;": "\u00A9",
|
| 326 |
+
"copy": "\u00A9",
|
| 327 |
+
"copysr;": "\u2117",
|
| 328 |
+
"CounterClockwiseContourIntegral;": "\u2233",
|
| 329 |
+
"crarr;": "\u21B5",
|
| 330 |
+
"Cross;": "\u2A2F",
|
| 331 |
+
"cross;": "\u2717",
|
| 332 |
+
"Cscr;": "\uD835\uDC9E",
|
| 333 |
+
"cscr;": "\uD835\uDCB8",
|
| 334 |
+
"csub;": "\u2ACF",
|
| 335 |
+
"csube;": "\u2AD1",
|
| 336 |
+
"csup;": "\u2AD0",
|
| 337 |
+
"csupe;": "\u2AD2",
|
| 338 |
+
"ctdot;": "\u22EF",
|
| 339 |
+
"cudarrl;": "\u2938",
|
| 340 |
+
"cudarrr;": "\u2935",
|
| 341 |
+
"cuepr;": "\u22DE",
|
| 342 |
+
"cuesc;": "\u22DF",
|
| 343 |
+
"cularr;": "\u21B6",
|
| 344 |
+
"cularrp;": "\u293D",
|
| 345 |
+
"Cup;": "\u22D3",
|
| 346 |
+
"cup;": "\u222A",
|
| 347 |
+
"cupbrcap;": "\u2A48",
|
| 348 |
+
"CupCap;": "\u224D",
|
| 349 |
+
"cupcap;": "\u2A46",
|
| 350 |
+
"cupcup;": "\u2A4A",
|
| 351 |
+
"cupdot;": "\u228D",
|
| 352 |
+
"cupor;": "\u2A45",
|
| 353 |
+
"cups;": "\u222A\uFE00",
|
| 354 |
+
"curarr;": "\u21B7",
|
| 355 |
+
"curarrm;": "\u293C",
|
| 356 |
+
"curlyeqprec;": "\u22DE",
|
| 357 |
+
"curlyeqsucc;": "\u22DF",
|
| 358 |
+
"curlyvee;": "\u22CE",
|
| 359 |
+
"curlywedge;": "\u22CF",
|
| 360 |
+
"curren;": "\u00A4",
|
| 361 |
+
"curren": "\u00A4",
|
| 362 |
+
"curvearrowleft;": "\u21B6",
|
| 363 |
+
"curvearrowright;": "\u21B7",
|
| 364 |
+
"cuvee;": "\u22CE",
|
| 365 |
+
"cuwed;": "\u22CF",
|
| 366 |
+
"cwconint;": "\u2232",
|
| 367 |
+
"cwint;": "\u2231",
|
| 368 |
+
"cylcty;": "\u232D",
|
| 369 |
+
"Dagger;": "\u2021",
|
| 370 |
+
"dagger;": "\u2020",
|
| 371 |
+
"daleth;": "\u2138",
|
| 372 |
+
"Darr;": "\u21A1",
|
| 373 |
+
"dArr;": "\u21D3",
|
| 374 |
+
"darr;": "\u2193",
|
| 375 |
+
"dash;": "\u2010",
|
| 376 |
+
"Dashv;": "\u2AE4",
|
| 377 |
+
"dashv;": "\u22A3",
|
| 378 |
+
"dbkarow;": "\u290F",
|
| 379 |
+
"dblac;": "\u02DD",
|
| 380 |
+
"Dcaron;": "\u010E",
|
| 381 |
+
"dcaron;": "\u010F",
|
| 382 |
+
"Dcy;": "\u0414",
|
| 383 |
+
"dcy;": "\u0434",
|
| 384 |
+
"DD;": "\u2145",
|
| 385 |
+
"dd;": "\u2146",
|
| 386 |
+
"ddagger;": "\u2021",
|
| 387 |
+
"ddarr;": "\u21CA",
|
| 388 |
+
"DDotrahd;": "\u2911",
|
| 389 |
+
"ddotseq;": "\u2A77",
|
| 390 |
+
"deg;": "\u00B0",
|
| 391 |
+
"deg": "\u00B0",
|
| 392 |
+
"Del;": "\u2207",
|
| 393 |
+
"Delta;": "\u0394",
|
| 394 |
+
"delta;": "\u03B4",
|
| 395 |
+
"demptyv;": "\u29B1",
|
| 396 |
+
"dfisht;": "\u297F",
|
| 397 |
+
"Dfr;": "\uD835\uDD07",
|
| 398 |
+
"dfr;": "\uD835\uDD21",
|
| 399 |
+
"dHar;": "\u2965",
|
| 400 |
+
"dharl;": "\u21C3",
|
| 401 |
+
"dharr;": "\u21C2",
|
| 402 |
+
"DiacriticalAcute;": "\u00B4",
|
| 403 |
+
"DiacriticalDot;": "\u02D9",
|
| 404 |
+
"DiacriticalDoubleAcute;": "\u02DD",
|
| 405 |
+
"DiacriticalGrave;": "\u0060",
|
| 406 |
+
"DiacriticalTilde;": "\u02DC",
|
| 407 |
+
"diam;": "\u22C4",
|
| 408 |
+
"Diamond;": "\u22C4",
|
| 409 |
+
"diamond;": "\u22C4",
|
| 410 |
+
"diamondsuit;": "\u2666",
|
| 411 |
+
"diams;": "\u2666",
|
| 412 |
+
"die;": "\u00A8",
|
| 413 |
+
"DifferentialD;": "\u2146",
|
| 414 |
+
"digamma;": "\u03DD",
|
| 415 |
+
"disin;": "\u22F2",
|
| 416 |
+
"div;": "\u00F7",
|
| 417 |
+
"divide;": "\u00F7",
|
| 418 |
+
"divide": "\u00F7",
|
| 419 |
+
"divideontimes;": "\u22C7",
|
| 420 |
+
"divonx;": "\u22C7",
|
| 421 |
+
"DJcy;": "\u0402",
|
| 422 |
+
"djcy;": "\u0452",
|
| 423 |
+
"dlcorn;": "\u231E",
|
| 424 |
+
"dlcrop;": "\u230D",
|
| 425 |
+
"dollar;": "\u0024",
|
| 426 |
+
"Dopf;": "\uD835\uDD3B",
|
| 427 |
+
"dopf;": "\uD835\uDD55",
|
| 428 |
+
"Dot;": "\u00A8",
|
| 429 |
+
"dot;": "\u02D9",
|
| 430 |
+
"DotDot;": "\u20DC",
|
| 431 |
+
"doteq;": "\u2250",
|
| 432 |
+
"doteqdot;": "\u2251",
|
| 433 |
+
"DotEqual;": "\u2250",
|
| 434 |
+
"dotminus;": "\u2238",
|
| 435 |
+
"dotplus;": "\u2214",
|
| 436 |
+
"dotsquare;": "\u22A1",
|
| 437 |
+
"doublebarwedge;": "\u2306",
|
| 438 |
+
"DoubleContourIntegral;": "\u222F",
|
| 439 |
+
"DoubleDot;": "\u00A8",
|
| 440 |
+
"DoubleDownArrow;": "\u21D3",
|
| 441 |
+
"DoubleLeftArrow;": "\u21D0",
|
| 442 |
+
"DoubleLeftRightArrow;": "\u21D4",
|
| 443 |
+
"DoubleLeftTee;": "\u2AE4",
|
| 444 |
+
"DoubleLongLeftArrow;": "\u27F8",
|
| 445 |
+
"DoubleLongLeftRightArrow;": "\u27FA",
|
| 446 |
+
"DoubleLongRightArrow;": "\u27F9",
|
| 447 |
+
"DoubleRightArrow;": "\u21D2",
|
| 448 |
+
"DoubleRightTee;": "\u22A8",
|
| 449 |
+
"DoubleUpArrow;": "\u21D1",
|
| 450 |
+
"DoubleUpDownArrow;": "\u21D5",
|
| 451 |
+
"DoubleVerticalBar;": "\u2225",
|
| 452 |
+
"DownArrow;": "\u2193",
|
| 453 |
+
"Downarrow;": "\u21D3",
|
| 454 |
+
"downarrow;": "\u2193",
|
| 455 |
+
"DownArrowBar;": "\u2913",
|
| 456 |
+
"DownArrowUpArrow;": "\u21F5",
|
| 457 |
+
"DownBreve;": "\u0311",
|
| 458 |
+
"downdownarrows;": "\u21CA",
|
| 459 |
+
"downharpoonleft;": "\u21C3",
|
| 460 |
+
"downharpoonright;": "\u21C2",
|
| 461 |
+
"DownLeftRightVector;": "\u2950",
|
| 462 |
+
"DownLeftTeeVector;": "\u295E",
|
| 463 |
+
"DownLeftVector;": "\u21BD",
|
| 464 |
+
"DownLeftVectorBar;": "\u2956",
|
| 465 |
+
"DownRightTeeVector;": "\u295F",
|
| 466 |
+
"DownRightVector;": "\u21C1",
|
| 467 |
+
"DownRightVectorBar;": "\u2957",
|
| 468 |
+
"DownTee;": "\u22A4",
|
| 469 |
+
"DownTeeArrow;": "\u21A7",
|
| 470 |
+
"drbkarow;": "\u2910",
|
| 471 |
+
"drcorn;": "\u231F",
|
| 472 |
+
"drcrop;": "\u230C",
|
| 473 |
+
"Dscr;": "\uD835\uDC9F",
|
| 474 |
+
"dscr;": "\uD835\uDCB9",
|
| 475 |
+
"DScy;": "\u0405",
|
| 476 |
+
"dscy;": "\u0455",
|
| 477 |
+
"dsol;": "\u29F6",
|
| 478 |
+
"Dstrok;": "\u0110",
|
| 479 |
+
"dstrok;": "\u0111",
|
| 480 |
+
"dtdot;": "\u22F1",
|
| 481 |
+
"dtri;": "\u25BF",
|
| 482 |
+
"dtrif;": "\u25BE",
|
| 483 |
+
"duarr;": "\u21F5",
|
| 484 |
+
"duhar;": "\u296F",
|
| 485 |
+
"dwangle;": "\u29A6",
|
| 486 |
+
"DZcy;": "\u040F",
|
| 487 |
+
"dzcy;": "\u045F",
|
| 488 |
+
"dzigrarr;": "\u27FF",
|
| 489 |
+
"Eacute;": "\u00C9",
|
| 490 |
+
"Eacute": "\u00C9",
|
| 491 |
+
"eacute;": "\u00E9",
|
| 492 |
+
"eacute": "\u00E9",
|
| 493 |
+
"easter;": "\u2A6E",
|
| 494 |
+
"Ecaron;": "\u011A",
|
| 495 |
+
"ecaron;": "\u011B",
|
| 496 |
+
"ecir;": "\u2256",
|
| 497 |
+
"Ecirc;": "\u00CA",
|
| 498 |
+
"Ecirc": "\u00CA",
|
| 499 |
+
"ecirc;": "\u00EA",
|
| 500 |
+
"ecirc": "\u00EA",
|
| 501 |
+
"ecolon;": "\u2255",
|
| 502 |
+
"Ecy;": "\u042D",
|
| 503 |
+
"ecy;": "\u044D",
|
| 504 |
+
"eDDot;": "\u2A77",
|
| 505 |
+
"Edot;": "\u0116",
|
| 506 |
+
"eDot;": "\u2251",
|
| 507 |
+
"edot;": "\u0117",
|
| 508 |
+
"ee;": "\u2147",
|
| 509 |
+
"efDot;": "\u2252",
|
| 510 |
+
"Efr;": "\uD835\uDD08",
|
| 511 |
+
"efr;": "\uD835\uDD22",
|
| 512 |
+
"eg;": "\u2A9A",
|
| 513 |
+
"Egrave;": "\u00C8",
|
| 514 |
+
"Egrave": "\u00C8",
|
| 515 |
+
"egrave;": "\u00E8",
|
| 516 |
+
"egrave": "\u00E8",
|
| 517 |
+
"egs;": "\u2A96",
|
| 518 |
+
"egsdot;": "\u2A98",
|
| 519 |
+
"el;": "\u2A99",
|
| 520 |
+
"Element;": "\u2208",
|
| 521 |
+
"elinters;": "\u23E7",
|
| 522 |
+
"ell;": "\u2113",
|
| 523 |
+
"els;": "\u2A95",
|
| 524 |
+
"elsdot;": "\u2A97",
|
| 525 |
+
"Emacr;": "\u0112",
|
| 526 |
+
"emacr;": "\u0113",
|
| 527 |
+
"empty;": "\u2205",
|
| 528 |
+
"emptyset;": "\u2205",
|
| 529 |
+
"EmptySmallSquare;": "\u25FB",
|
| 530 |
+
"emptyv;": "\u2205",
|
| 531 |
+
"EmptyVerySmallSquare;": "\u25AB",
|
| 532 |
+
"emsp;": "\u2003",
|
| 533 |
+
"emsp13;": "\u2004",
|
| 534 |
+
"emsp14;": "\u2005",
|
| 535 |
+
"ENG;": "\u014A",
|
| 536 |
+
"eng;": "\u014B",
|
| 537 |
+
"ensp;": "\u2002",
|
| 538 |
+
"Eogon;": "\u0118",
|
| 539 |
+
"eogon;": "\u0119",
|
| 540 |
+
"Eopf;": "\uD835\uDD3C",
|
| 541 |
+
"eopf;": "\uD835\uDD56",
|
| 542 |
+
"epar;": "\u22D5",
|
| 543 |
+
"eparsl;": "\u29E3",
|
| 544 |
+
"eplus;": "\u2A71",
|
| 545 |
+
"epsi;": "\u03B5",
|
| 546 |
+
"Epsilon;": "\u0395",
|
| 547 |
+
"epsilon;": "\u03B5",
|
| 548 |
+
"epsiv;": "\u03F5",
|
| 549 |
+
"eqcirc;": "\u2256",
|
| 550 |
+
"eqcolon;": "\u2255",
|
| 551 |
+
"eqsim;": "\u2242",
|
| 552 |
+
"eqslantgtr;": "\u2A96",
|
| 553 |
+
"eqslantless;": "\u2A95",
|
| 554 |
+
"Equal;": "\u2A75",
|
| 555 |
+
"equals;": "\u003D",
|
| 556 |
+
"EqualTilde;": "\u2242",
|
| 557 |
+
"equest;": "\u225F",
|
| 558 |
+
"Equilibrium;": "\u21CC",
|
| 559 |
+
"equiv;": "\u2261",
|
| 560 |
+
"equivDD;": "\u2A78",
|
| 561 |
+
"eqvparsl;": "\u29E5",
|
| 562 |
+
"erarr;": "\u2971",
|
| 563 |
+
"erDot;": "\u2253",
|
| 564 |
+
"Escr;": "\u2130",
|
| 565 |
+
"escr;": "\u212F",
|
| 566 |
+
"esdot;": "\u2250",
|
| 567 |
+
"Esim;": "\u2A73",
|
| 568 |
+
"esim;": "\u2242",
|
| 569 |
+
"Eta;": "\u0397",
|
| 570 |
+
"eta;": "\u03B7",
|
| 571 |
+
"ETH;": "\u00D0",
|
| 572 |
+
"ETH": "\u00D0",
|
| 573 |
+
"eth;": "\u00F0",
|
| 574 |
+
"eth": "\u00F0",
|
| 575 |
+
"Euml;": "\u00CB",
|
| 576 |
+
"Euml": "\u00CB",
|
| 577 |
+
"euml;": "\u00EB",
|
| 578 |
+
"euml": "\u00EB",
|
| 579 |
+
"euro;": "\u20AC",
|
| 580 |
+
"excl;": "\u0021",
|
| 581 |
+
"exist;": "\u2203",
|
| 582 |
+
"Exists;": "\u2203",
|
| 583 |
+
"expectation;": "\u2130",
|
| 584 |
+
"ExponentialE;": "\u2147",
|
| 585 |
+
"exponentiale;": "\u2147",
|
| 586 |
+
"fallingdotseq;": "\u2252",
|
| 587 |
+
"Fcy;": "\u0424",
|
| 588 |
+
"fcy;": "\u0444",
|
| 589 |
+
"female;": "\u2640",
|
| 590 |
+
"ffilig;": "\uFB03",
|
| 591 |
+
"fflig;": "\uFB00",
|
| 592 |
+
"ffllig;": "\uFB04",
|
| 593 |
+
"Ffr;": "\uD835\uDD09",
|
| 594 |
+
"ffr;": "\uD835\uDD23",
|
| 595 |
+
"filig;": "\uFB01",
|
| 596 |
+
"FilledSmallSquare;": "\u25FC",
|
| 597 |
+
"FilledVerySmallSquare;": "\u25AA",
|
| 598 |
+
"fjlig;": "\u0066\u006A",
|
| 599 |
+
"flat;": "\u266D",
|
| 600 |
+
"fllig;": "\uFB02",
|
| 601 |
+
"fltns;": "\u25B1",
|
| 602 |
+
"fnof;": "\u0192",
|
| 603 |
+
"Fopf;": "\uD835\uDD3D",
|
| 604 |
+
"fopf;": "\uD835\uDD57",
|
| 605 |
+
"ForAll;": "\u2200",
|
| 606 |
+
"forall;": "\u2200",
|
| 607 |
+
"fork;": "\u22D4",
|
| 608 |
+
"forkv;": "\u2AD9",
|
| 609 |
+
"Fouriertrf;": "\u2131",
|
| 610 |
+
"fpartint;": "\u2A0D",
|
| 611 |
+
"frac12;": "\u00BD",
|
| 612 |
+
"frac12": "\u00BD",
|
| 613 |
+
"frac13;": "\u2153",
|
| 614 |
+
"frac14;": "\u00BC",
|
| 615 |
+
"frac14": "\u00BC",
|
| 616 |
+
"frac15;": "\u2155",
|
| 617 |
+
"frac16;": "\u2159",
|
| 618 |
+
"frac18;": "\u215B",
|
| 619 |
+
"frac23;": "\u2154",
|
| 620 |
+
"frac25;": "\u2156",
|
| 621 |
+
"frac34;": "\u00BE",
|
| 622 |
+
"frac34": "\u00BE",
|
| 623 |
+
"frac35;": "\u2157",
|
| 624 |
+
"frac38;": "\u215C",
|
| 625 |
+
"frac45;": "\u2158",
|
| 626 |
+
"frac56;": "\u215A",
|
| 627 |
+
"frac58;": "\u215D",
|
| 628 |
+
"frac78;": "\u215E",
|
| 629 |
+
"frasl;": "\u2044",
|
| 630 |
+
"frown;": "\u2322",
|
| 631 |
+
"Fscr;": "\u2131",
|
| 632 |
+
"fscr;": "\uD835\uDCBB",
|
| 633 |
+
"gacute;": "\u01F5",
|
| 634 |
+
"Gamma;": "\u0393",
|
| 635 |
+
"gamma;": "\u03B3",
|
| 636 |
+
"Gammad;": "\u03DC",
|
| 637 |
+
"gammad;": "\u03DD",
|
| 638 |
+
"gap;": "\u2A86",
|
| 639 |
+
"Gbreve;": "\u011E",
|
| 640 |
+
"gbreve;": "\u011F",
|
| 641 |
+
"Gcedil;": "\u0122",
|
| 642 |
+
"Gcirc;": "\u011C",
|
| 643 |
+
"gcirc;": "\u011D",
|
| 644 |
+
"Gcy;": "\u0413",
|
| 645 |
+
"gcy;": "\u0433",
|
| 646 |
+
"Gdot;": "\u0120",
|
| 647 |
+
"gdot;": "\u0121",
|
| 648 |
+
"gE;": "\u2267",
|
| 649 |
+
"ge;": "\u2265",
|
| 650 |
+
"gEl;": "\u2A8C",
|
| 651 |
+
"gel;": "\u22DB",
|
| 652 |
+
"geq;": "\u2265",
|
| 653 |
+
"geqq;": "\u2267",
|
| 654 |
+
"geqslant;": "\u2A7E",
|
| 655 |
+
"ges;": "\u2A7E",
|
| 656 |
+
"gescc;": "\u2AA9",
|
| 657 |
+
"gesdot;": "\u2A80",
|
| 658 |
+
"gesdoto;": "\u2A82",
|
| 659 |
+
"gesdotol;": "\u2A84",
|
| 660 |
+
"gesl;": "\u22DB\uFE00",
|
| 661 |
+
"gesles;": "\u2A94",
|
| 662 |
+
"Gfr;": "\uD835\uDD0A",
|
| 663 |
+
"gfr;": "\uD835\uDD24",
|
| 664 |
+
"Gg;": "\u22D9",
|
| 665 |
+
"gg;": "\u226B",
|
| 666 |
+
"ggg;": "\u22D9",
|
| 667 |
+
"gimel;": "\u2137",
|
| 668 |
+
"GJcy;": "\u0403",
|
| 669 |
+
"gjcy;": "\u0453",
|
| 670 |
+
"gl;": "\u2277",
|
| 671 |
+
"gla;": "\u2AA5",
|
| 672 |
+
"glE;": "\u2A92",
|
| 673 |
+
"glj;": "\u2AA4",
|
| 674 |
+
"gnap;": "\u2A8A",
|
| 675 |
+
"gnapprox;": "\u2A8A",
|
| 676 |
+
"gnE;": "\u2269",
|
| 677 |
+
"gne;": "\u2A88",
|
| 678 |
+
"gneq;": "\u2A88",
|
| 679 |
+
"gneqq;": "\u2269",
|
| 680 |
+
"gnsim;": "\u22E7",
|
| 681 |
+
"Gopf;": "\uD835\uDD3E",
|
| 682 |
+
"gopf;": "\uD835\uDD58",
|
| 683 |
+
"grave;": "\u0060",
|
| 684 |
+
"GreaterEqual;": "\u2265",
|
| 685 |
+
"GreaterEqualLess;": "\u22DB",
|
| 686 |
+
"GreaterFullEqual;": "\u2267",
|
| 687 |
+
"GreaterGreater;": "\u2AA2",
|
| 688 |
+
"GreaterLess;": "\u2277",
|
| 689 |
+
"GreaterSlantEqual;": "\u2A7E",
|
| 690 |
+
"GreaterTilde;": "\u2273",
|
| 691 |
+
"Gscr;": "\uD835\uDCA2",
|
| 692 |
+
"gscr;": "\u210A",
|
| 693 |
+
"gsim;": "\u2273",
|
| 694 |
+
"gsime;": "\u2A8E",
|
| 695 |
+
"gsiml;": "\u2A90",
|
| 696 |
+
"GT;": "\u003E",
|
| 697 |
+
"GT": "\u003E",
|
| 698 |
+
"Gt;": "\u226B",
|
| 699 |
+
"gt;": "\u003E",
|
| 700 |
+
"gt": "\u003E",
|
| 701 |
+
"gtcc;": "\u2AA7",
|
| 702 |
+
"gtcir;": "\u2A7A",
|
| 703 |
+
"gtdot;": "\u22D7",
|
| 704 |
+
"gtlPar;": "\u2995",
|
| 705 |
+
"gtquest;": "\u2A7C",
|
| 706 |
+
"gtrapprox;": "\u2A86",
|
| 707 |
+
"gtrarr;": "\u2978",
|
| 708 |
+
"gtrdot;": "\u22D7",
|
| 709 |
+
"gtreqless;": "\u22DB",
|
| 710 |
+
"gtreqqless;": "\u2A8C",
|
| 711 |
+
"gtrless;": "\u2277",
|
| 712 |
+
"gtrsim;": "\u2273",
|
| 713 |
+
"gvertneqq;": "\u2269\uFE00",
|
| 714 |
+
"gvnE;": "\u2269\uFE00",
|
| 715 |
+
"Hacek;": "\u02C7",
|
| 716 |
+
"hairsp;": "\u200A",
|
| 717 |
+
"half;": "\u00BD",
|
| 718 |
+
"hamilt;": "\u210B",
|
| 719 |
+
"HARDcy;": "\u042A",
|
| 720 |
+
"hardcy;": "\u044A",
|
| 721 |
+
"hArr;": "\u21D4",
|
| 722 |
+
"harr;": "\u2194",
|
| 723 |
+
"harrcir;": "\u2948",
|
| 724 |
+
"harrw;": "\u21AD",
|
| 725 |
+
"Hat;": "\u005E",
|
| 726 |
+
"hbar;": "\u210F",
|
| 727 |
+
"Hcirc;": "\u0124",
|
| 728 |
+
"hcirc;": "\u0125",
|
| 729 |
+
"hearts;": "\u2665",
|
| 730 |
+
"heartsuit;": "\u2665",
|
| 731 |
+
"hellip;": "\u2026",
|
| 732 |
+
"hercon;": "\u22B9",
|
| 733 |
+
"Hfr;": "\u210C",
|
| 734 |
+
"hfr;": "\uD835\uDD25",
|
| 735 |
+
"HilbertSpace;": "\u210B",
|
| 736 |
+
"hksearow;": "\u2925",
|
| 737 |
+
"hkswarow;": "\u2926",
|
| 738 |
+
"hoarr;": "\u21FF",
|
| 739 |
+
"homtht;": "\u223B",
|
| 740 |
+
"hookleftarrow;": "\u21A9",
|
| 741 |
+
"hookrightarrow;": "\u21AA",
|
| 742 |
+
"Hopf;": "\u210D",
|
| 743 |
+
"hopf;": "\uD835\uDD59",
|
| 744 |
+
"horbar;": "\u2015",
|
| 745 |
+
"HorizontalLine;": "\u2500",
|
| 746 |
+
"Hscr;": "\u210B",
|
| 747 |
+
"hscr;": "\uD835\uDCBD",
|
| 748 |
+
"hslash;": "\u210F",
|
| 749 |
+
"Hstrok;": "\u0126",
|
| 750 |
+
"hstrok;": "\u0127",
|
| 751 |
+
"HumpDownHump;": "\u224E",
|
| 752 |
+
"HumpEqual;": "\u224F",
|
| 753 |
+
"hybull;": "\u2043",
|
| 754 |
+
"hyphen;": "\u2010",
|
| 755 |
+
"Iacute;": "\u00CD",
|
| 756 |
+
"Iacute": "\u00CD",
|
| 757 |
+
"iacute;": "\u00ED",
|
| 758 |
+
"iacute": "\u00ED",
|
| 759 |
+
"ic;": "\u2063",
|
| 760 |
+
"Icirc;": "\u00CE",
|
| 761 |
+
"Icirc": "\u00CE",
|
| 762 |
+
"icirc;": "\u00EE",
|
| 763 |
+
"icirc": "\u00EE",
|
| 764 |
+
"Icy;": "\u0418",
|
| 765 |
+
"icy;": "\u0438",
|
| 766 |
+
"Idot;": "\u0130",
|
| 767 |
+
"IEcy;": "\u0415",
|
| 768 |
+
"iecy;": "\u0435",
|
| 769 |
+
"iexcl;": "\u00A1",
|
| 770 |
+
"iexcl": "\u00A1",
|
| 771 |
+
"iff;": "\u21D4",
|
| 772 |
+
"Ifr;": "\u2111",
|
| 773 |
+
"ifr;": "\uD835\uDD26",
|
| 774 |
+
"Igrave;": "\u00CC",
|
| 775 |
+
"Igrave": "\u00CC",
|
| 776 |
+
"igrave;": "\u00EC",
|
| 777 |
+
"igrave": "\u00EC",
|
| 778 |
+
"ii;": "\u2148",
|
| 779 |
+
"iiiint;": "\u2A0C",
|
| 780 |
+
"iiint;": "\u222D",
|
| 781 |
+
"iinfin;": "\u29DC",
|
| 782 |
+
"iiota;": "\u2129",
|
| 783 |
+
"IJlig;": "\u0132",
|
| 784 |
+
"ijlig;": "\u0133",
|
| 785 |
+
"Im;": "\u2111",
|
| 786 |
+
"Imacr;": "\u012A",
|
| 787 |
+
"imacr;": "\u012B",
|
| 788 |
+
"image;": "\u2111",
|
| 789 |
+
"ImaginaryI;": "\u2148",
|
| 790 |
+
"imagline;": "\u2110",
|
| 791 |
+
"imagpart;": "\u2111",
|
| 792 |
+
"imath;": "\u0131",
|
| 793 |
+
"imof;": "\u22B7",
|
| 794 |
+
"imped;": "\u01B5",
|
| 795 |
+
"Implies;": "\u21D2",
|
| 796 |
+
"in;": "\u2208",
|
| 797 |
+
"incare;": "\u2105",
|
| 798 |
+
"infin;": "\u221E",
|
| 799 |
+
"infintie;": "\u29DD",
|
| 800 |
+
"inodot;": "\u0131",
|
| 801 |
+
"Int;": "\u222C",
|
| 802 |
+
"int;": "\u222B",
|
| 803 |
+
"intcal;": "\u22BA",
|
| 804 |
+
"integers;": "\u2124",
|
| 805 |
+
"Integral;": "\u222B",
|
| 806 |
+
"intercal;": "\u22BA",
|
| 807 |
+
"Intersection;": "\u22C2",
|
| 808 |
+
"intlarhk;": "\u2A17",
|
| 809 |
+
"intprod;": "\u2A3C",
|
| 810 |
+
"InvisibleComma;": "\u2063",
|
| 811 |
+
"InvisibleTimes;": "\u2062",
|
| 812 |
+
"IOcy;": "\u0401",
|
| 813 |
+
"iocy;": "\u0451",
|
| 814 |
+
"Iogon;": "\u012E",
|
| 815 |
+
"iogon;": "\u012F",
|
| 816 |
+
"Iopf;": "\uD835\uDD40",
|
| 817 |
+
"iopf;": "\uD835\uDD5A",
|
| 818 |
+
"Iota;": "\u0399",
|
| 819 |
+
"iota;": "\u03B9",
|
| 820 |
+
"iprod;": "\u2A3C",
|
| 821 |
+
"iquest;": "\u00BF",
|
| 822 |
+
"iquest": "\u00BF",
|
| 823 |
+
"Iscr;": "\u2110",
|
| 824 |
+
"iscr;": "\uD835\uDCBE",
|
| 825 |
+
"isin;": "\u2208",
|
| 826 |
+
"isindot;": "\u22F5",
|
| 827 |
+
"isinE;": "\u22F9",
|
| 828 |
+
"isins;": "\u22F4",
|
| 829 |
+
"isinsv;": "\u22F3",
|
| 830 |
+
"isinv;": "\u2208",
|
| 831 |
+
"it;": "\u2062",
|
| 832 |
+
"Itilde;": "\u0128",
|
| 833 |
+
"itilde;": "\u0129",
|
| 834 |
+
"Iukcy;": "\u0406",
|
| 835 |
+
"iukcy;": "\u0456",
|
| 836 |
+
"Iuml;": "\u00CF",
|
| 837 |
+
"Iuml": "\u00CF",
|
| 838 |
+
"iuml;": "\u00EF",
|
| 839 |
+
"iuml": "\u00EF",
|
| 840 |
+
"Jcirc;": "\u0134",
|
| 841 |
+
"jcirc;": "\u0135",
|
| 842 |
+
"Jcy;": "\u0419",
|
| 843 |
+
"jcy;": "\u0439",
|
| 844 |
+
"Jfr;": "\uD835\uDD0D",
|
| 845 |
+
"jfr;": "\uD835\uDD27",
|
| 846 |
+
"jmath;": "\u0237",
|
| 847 |
+
"Jopf;": "\uD835\uDD41",
|
| 848 |
+
"jopf;": "\uD835\uDD5B",
|
| 849 |
+
"Jscr;": "\uD835\uDCA5",
|
| 850 |
+
"jscr;": "\uD835\uDCBF",
|
| 851 |
+
"Jsercy;": "\u0408",
|
| 852 |
+
"jsercy;": "\u0458",
|
| 853 |
+
"Jukcy;": "\u0404",
|
| 854 |
+
"jukcy;": "\u0454",
|
| 855 |
+
"Kappa;": "\u039A",
|
| 856 |
+
"kappa;": "\u03BA",
|
| 857 |
+
"kappav;": "\u03F0",
|
| 858 |
+
"Kcedil;": "\u0136",
|
| 859 |
+
"kcedil;": "\u0137",
|
| 860 |
+
"Kcy;": "\u041A",
|
| 861 |
+
"kcy;": "\u043A",
|
| 862 |
+
"Kfr;": "\uD835\uDD0E",
|
| 863 |
+
"kfr;": "\uD835\uDD28",
|
| 864 |
+
"kgreen;": "\u0138",
|
| 865 |
+
"KHcy;": "\u0425",
|
| 866 |
+
"khcy;": "\u0445",
|
| 867 |
+
"KJcy;": "\u040C",
|
| 868 |
+
"kjcy;": "\u045C",
|
| 869 |
+
"Kopf;": "\uD835\uDD42",
|
| 870 |
+
"kopf;": "\uD835\uDD5C",
|
| 871 |
+
"Kscr;": "\uD835\uDCA6",
|
| 872 |
+
"kscr;": "\uD835\uDCC0",
|
| 873 |
+
"lAarr;": "\u21DA",
|
| 874 |
+
"Lacute;": "\u0139",
|
| 875 |
+
"lacute;": "\u013A",
|
| 876 |
+
"laemptyv;": "\u29B4",
|
| 877 |
+
"lagran;": "\u2112",
|
| 878 |
+
"Lambda;": "\u039B",
|
| 879 |
+
"lambda;": "\u03BB",
|
| 880 |
+
"Lang;": "\u27EA",
|
| 881 |
+
"lang;": "\u27E8",
|
| 882 |
+
"langd;": "\u2991",
|
| 883 |
+
"langle;": "\u27E8",
|
| 884 |
+
"lap;": "\u2A85",
|
| 885 |
+
"Laplacetrf;": "\u2112",
|
| 886 |
+
"laquo;": "\u00AB",
|
| 887 |
+
"laquo": "\u00AB",
|
| 888 |
+
"Larr;": "\u219E",
|
| 889 |
+
"lArr;": "\u21D0",
|
| 890 |
+
"larr;": "\u2190",
|
| 891 |
+
"larrb;": "\u21E4",
|
| 892 |
+
"larrbfs;": "\u291F",
|
| 893 |
+
"larrfs;": "\u291D",
|
| 894 |
+
"larrhk;": "\u21A9",
|
| 895 |
+
"larrlp;": "\u21AB",
|
| 896 |
+
"larrpl;": "\u2939",
|
| 897 |
+
"larrsim;": "\u2973",
|
| 898 |
+
"larrtl;": "\u21A2",
|
| 899 |
+
"lat;": "\u2AAB",
|
| 900 |
+
"lAtail;": "\u291B",
|
| 901 |
+
"latail;": "\u2919",
|
| 902 |
+
"late;": "\u2AAD",
|
| 903 |
+
"lates;": "\u2AAD\uFE00",
|
| 904 |
+
"lBarr;": "\u290E",
|
| 905 |
+
"lbarr;": "\u290C",
|
| 906 |
+
"lbbrk;": "\u2772",
|
| 907 |
+
"lbrace;": "\u007B",
|
| 908 |
+
"lbrack;": "\u005B",
|
| 909 |
+
"lbrke;": "\u298B",
|
| 910 |
+
"lbrksld;": "\u298F",
|
| 911 |
+
"lbrkslu;": "\u298D",
|
| 912 |
+
"Lcaron;": "\u013D",
|
| 913 |
+
"lcaron;": "\u013E",
|
| 914 |
+
"Lcedil;": "\u013B",
|
| 915 |
+
"lcedil;": "\u013C",
|
| 916 |
+
"lceil;": "\u2308",
|
| 917 |
+
"lcub;": "\u007B",
|
| 918 |
+
"Lcy;": "\u041B",
|
| 919 |
+
"lcy;": "\u043B",
|
| 920 |
+
"ldca;": "\u2936",
|
| 921 |
+
"ldquo;": "\u201C",
|
| 922 |
+
"ldquor;": "\u201E",
|
| 923 |
+
"ldrdhar;": "\u2967",
|
| 924 |
+
"ldrushar;": "\u294B",
|
| 925 |
+
"ldsh;": "\u21B2",
|
| 926 |
+
"lE;": "\u2266",
|
| 927 |
+
"le;": "\u2264",
|
| 928 |
+
"LeftAngleBracket;": "\u27E8",
|
| 929 |
+
"LeftArrow;": "\u2190",
|
| 930 |
+
"Leftarrow;": "\u21D0",
|
| 931 |
+
"leftarrow;": "\u2190",
|
| 932 |
+
"LeftArrowBar;": "\u21E4",
|
| 933 |
+
"LeftArrowRightArrow;": "\u21C6",
|
| 934 |
+
"leftarrowtail;": "\u21A2",
|
| 935 |
+
"LeftCeiling;": "\u2308",
|
| 936 |
+
"LeftDoubleBracket;": "\u27E6",
|
| 937 |
+
"LeftDownTeeVector;": "\u2961",
|
| 938 |
+
"LeftDownVector;": "\u21C3",
|
| 939 |
+
"LeftDownVectorBar;": "\u2959",
|
| 940 |
+
"LeftFloor;": "\u230A",
|
| 941 |
+
"leftharpoondown;": "\u21BD",
|
| 942 |
+
"leftharpoonup;": "\u21BC",
|
| 943 |
+
"leftleftarrows;": "\u21C7",
|
| 944 |
+
"LeftRightArrow;": "\u2194",
|
| 945 |
+
"Leftrightarrow;": "\u21D4",
|
| 946 |
+
"leftrightarrow;": "\u2194",
|
| 947 |
+
"leftrightarrows;": "\u21C6",
|
| 948 |
+
"leftrightharpoons;": "\u21CB",
|
| 949 |
+
"leftrightsquigarrow;": "\u21AD",
|
| 950 |
+
"LeftRightVector;": "\u294E",
|
| 951 |
+
"LeftTee;": "\u22A3",
|
| 952 |
+
"LeftTeeArrow;": "\u21A4",
|
| 953 |
+
"LeftTeeVector;": "\u295A",
|
| 954 |
+
"leftthreetimes;": "\u22CB",
|
| 955 |
+
"LeftTriangle;": "\u22B2",
|
| 956 |
+
"LeftTriangleBar;": "\u29CF",
|
| 957 |
+
"LeftTriangleEqual;": "\u22B4",
|
| 958 |
+
"LeftUpDownVector;": "\u2951",
|
| 959 |
+
"LeftUpTeeVector;": "\u2960",
|
| 960 |
+
"LeftUpVector;": "\u21BF",
|
| 961 |
+
"LeftUpVectorBar;": "\u2958",
|
| 962 |
+
"LeftVector;": "\u21BC",
|
| 963 |
+
"LeftVectorBar;": "\u2952",
|
| 964 |
+
"lEg;": "\u2A8B",
|
| 965 |
+
"leg;": "\u22DA",
|
| 966 |
+
"leq;": "\u2264",
|
| 967 |
+
"leqq;": "\u2266",
|
| 968 |
+
"leqslant;": "\u2A7D",
|
| 969 |
+
"les;": "\u2A7D",
|
| 970 |
+
"lescc;": "\u2AA8",
|
| 971 |
+
"lesdot;": "\u2A7F",
|
| 972 |
+
"lesdoto;": "\u2A81",
|
| 973 |
+
"lesdotor;": "\u2A83",
|
| 974 |
+
"lesg;": "\u22DA\uFE00",
|
| 975 |
+
"lesges;": "\u2A93",
|
| 976 |
+
"lessapprox;": "\u2A85",
|
| 977 |
+
"lessdot;": "\u22D6",
|
| 978 |
+
"lesseqgtr;": "\u22DA",
|
| 979 |
+
"lesseqqgtr;": "\u2A8B",
|
| 980 |
+
"LessEqualGreater;": "\u22DA",
|
| 981 |
+
"LessFullEqual;": "\u2266",
|
| 982 |
+
"LessGreater;": "\u2276",
|
| 983 |
+
"lessgtr;": "\u2276",
|
| 984 |
+
"LessLess;": "\u2AA1",
|
| 985 |
+
"lesssim;": "\u2272",
|
| 986 |
+
"LessSlantEqual;": "\u2A7D",
|
| 987 |
+
"LessTilde;": "\u2272",
|
| 988 |
+
"lfisht;": "\u297C",
|
| 989 |
+
"lfloor;": "\u230A",
|
| 990 |
+
"Lfr;": "\uD835\uDD0F",
|
| 991 |
+
"lfr;": "\uD835\uDD29",
|
| 992 |
+
"lg;": "\u2276",
|
| 993 |
+
"lgE;": "\u2A91",
|
| 994 |
+
"lHar;": "\u2962",
|
| 995 |
+
"lhard;": "\u21BD",
|
| 996 |
+
"lharu;": "\u21BC",
|
| 997 |
+
"lharul;": "\u296A",
|
| 998 |
+
"lhblk;": "\u2584",
|
| 999 |
+
"LJcy;": "\u0409",
|
| 1000 |
+
"ljcy;": "\u0459",
|
| 1001 |
+
"Ll;": "\u22D8",
|
| 1002 |
+
"ll;": "\u226A",
|
| 1003 |
+
"llarr;": "\u21C7",
|
| 1004 |
+
"llcorner;": "\u231E",
|
| 1005 |
+
"Lleftarrow;": "\u21DA",
|
| 1006 |
+
"llhard;": "\u296B",
|
| 1007 |
+
"lltri;": "\u25FA",
|
| 1008 |
+
"Lmidot;": "\u013F",
|
| 1009 |
+
"lmidot;": "\u0140",
|
| 1010 |
+
"lmoust;": "\u23B0",
|
| 1011 |
+
"lmoustache;": "\u23B0",
|
| 1012 |
+
"lnap;": "\u2A89",
|
| 1013 |
+
"lnapprox;": "\u2A89",
|
| 1014 |
+
"lnE;": "\u2268",
|
| 1015 |
+
"lne;": "\u2A87",
|
| 1016 |
+
"lneq;": "\u2A87",
|
| 1017 |
+
"lneqq;": "\u2268",
|
| 1018 |
+
"lnsim;": "\u22E6",
|
| 1019 |
+
"loang;": "\u27EC",
|
| 1020 |
+
"loarr;": "\u21FD",
|
| 1021 |
+
"lobrk;": "\u27E6",
|
| 1022 |
+
"LongLeftArrow;": "\u27F5",
|
| 1023 |
+
"Longleftarrow;": "\u27F8",
|
| 1024 |
+
"longleftarrow;": "\u27F5",
|
| 1025 |
+
"LongLeftRightArrow;": "\u27F7",
|
| 1026 |
+
"Longleftrightarrow;": "\u27FA",
|
| 1027 |
+
"longleftrightarrow;": "\u27F7",
|
| 1028 |
+
"longmapsto;": "\u27FC",
|
| 1029 |
+
"LongRightArrow;": "\u27F6",
|
| 1030 |
+
"Longrightarrow;": "\u27F9",
|
| 1031 |
+
"longrightarrow;": "\u27F6",
|
| 1032 |
+
"looparrowleft;": "\u21AB",
|
| 1033 |
+
"looparrowright;": "\u21AC",
|
| 1034 |
+
"lopar;": "\u2985",
|
| 1035 |
+
"Lopf;": "\uD835\uDD43",
|
| 1036 |
+
"lopf;": "\uD835\uDD5D",
|
| 1037 |
+
"loplus;": "\u2A2D",
|
| 1038 |
+
"lotimes;": "\u2A34",
|
| 1039 |
+
"lowast;": "\u2217",
|
| 1040 |
+
"lowbar;": "\u005F",
|
| 1041 |
+
"LowerLeftArrow;": "\u2199",
|
| 1042 |
+
"LowerRightArrow;": "\u2198",
|
| 1043 |
+
"loz;": "\u25CA",
|
| 1044 |
+
"lozenge;": "\u25CA",
|
| 1045 |
+
"lozf;": "\u29EB",
|
| 1046 |
+
"lpar;": "\u0028",
|
| 1047 |
+
"lparlt;": "\u2993",
|
| 1048 |
+
"lrarr;": "\u21C6",
|
| 1049 |
+
"lrcorner;": "\u231F",
|
| 1050 |
+
"lrhar;": "\u21CB",
|
| 1051 |
+
"lrhard;": "\u296D",
|
| 1052 |
+
"lrm;": "\u200E",
|
| 1053 |
+
"lrtri;": "\u22BF",
|
| 1054 |
+
"lsaquo;": "\u2039",
|
| 1055 |
+
"Lscr;": "\u2112",
|
| 1056 |
+
"lscr;": "\uD835\uDCC1",
|
| 1057 |
+
"Lsh;": "\u21B0",
|
| 1058 |
+
"lsh;": "\u21B0",
|
| 1059 |
+
"lsim;": "\u2272",
|
| 1060 |
+
"lsime;": "\u2A8D",
|
| 1061 |
+
"lsimg;": "\u2A8F",
|
| 1062 |
+
"lsqb;": "\u005B",
|
| 1063 |
+
"lsquo;": "\u2018",
|
| 1064 |
+
"lsquor;": "\u201A",
|
| 1065 |
+
"Lstrok;": "\u0141",
|
| 1066 |
+
"lstrok;": "\u0142",
|
| 1067 |
+
"LT;": "\u003C",
|
| 1068 |
+
"LT": "\u003C",
|
| 1069 |
+
"Lt;": "\u226A",
|
| 1070 |
+
"lt;": "\u003C",
|
| 1071 |
+
"lt": "\u003C",
|
| 1072 |
+
"ltcc;": "\u2AA6",
|
| 1073 |
+
"ltcir;": "\u2A79",
|
| 1074 |
+
"ltdot;": "\u22D6",
|
| 1075 |
+
"lthree;": "\u22CB",
|
| 1076 |
+
"ltimes;": "\u22C9",
|
| 1077 |
+
"ltlarr;": "\u2976",
|
| 1078 |
+
"ltquest;": "\u2A7B",
|
| 1079 |
+
"ltri;": "\u25C3",
|
| 1080 |
+
"ltrie;": "\u22B4",
|
| 1081 |
+
"ltrif;": "\u25C2",
|
| 1082 |
+
"ltrPar;": "\u2996",
|
| 1083 |
+
"lurdshar;": "\u294A",
|
| 1084 |
+
"luruhar;": "\u2966",
|
| 1085 |
+
"lvertneqq;": "\u2268\uFE00",
|
| 1086 |
+
"lvnE;": "\u2268\uFE00",
|
| 1087 |
+
"macr;": "\u00AF",
|
| 1088 |
+
"macr": "\u00AF",
|
| 1089 |
+
"male;": "\u2642",
|
| 1090 |
+
"malt;": "\u2720",
|
| 1091 |
+
"maltese;": "\u2720",
|
| 1092 |
+
"Map;": "\u2905",
|
| 1093 |
+
"map;": "\u21A6",
|
| 1094 |
+
"mapsto;": "\u21A6",
|
| 1095 |
+
"mapstodown;": "\u21A7",
|
| 1096 |
+
"mapstoleft;": "\u21A4",
|
| 1097 |
+
"mapstoup;": "\u21A5",
|
| 1098 |
+
"marker;": "\u25AE",
|
| 1099 |
+
"mcomma;": "\u2A29",
|
| 1100 |
+
"Mcy;": "\u041C",
|
| 1101 |
+
"mcy;": "\u043C",
|
| 1102 |
+
"mdash;": "\u2014",
|
| 1103 |
+
"mDDot;": "\u223A",
|
| 1104 |
+
"measuredangle;": "\u2221",
|
| 1105 |
+
"MediumSpace;": "\u205F",
|
| 1106 |
+
"Mellintrf;": "\u2133",
|
| 1107 |
+
"Mfr;": "\uD835\uDD10",
|
| 1108 |
+
"mfr;": "\uD835\uDD2A",
|
| 1109 |
+
"mho;": "\u2127",
|
| 1110 |
+
"micro;": "\u00B5",
|
| 1111 |
+
"micro": "\u00B5",
|
| 1112 |
+
"mid;": "\u2223",
|
| 1113 |
+
"midast;": "\u002A",
|
| 1114 |
+
"midcir;": "\u2AF0",
|
| 1115 |
+
"middot;": "\u00B7",
|
| 1116 |
+
"middot": "\u00B7",
|
| 1117 |
+
"minus;": "\u2212",
|
| 1118 |
+
"minusb;": "\u229F",
|
| 1119 |
+
"minusd;": "\u2238",
|
| 1120 |
+
"minusdu;": "\u2A2A",
|
| 1121 |
+
"MinusPlus;": "\u2213",
|
| 1122 |
+
"mlcp;": "\u2ADB",
|
| 1123 |
+
"mldr;": "\u2026",
|
| 1124 |
+
"mnplus;": "\u2213",
|
| 1125 |
+
"models;": "\u22A7",
|
| 1126 |
+
"Mopf;": "\uD835\uDD44",
|
| 1127 |
+
"mopf;": "\uD835\uDD5E",
|
| 1128 |
+
"mp;": "\u2213",
|
| 1129 |
+
"Mscr;": "\u2133",
|
| 1130 |
+
"mscr;": "\uD835\uDCC2",
|
| 1131 |
+
"mstpos;": "\u223E",
|
| 1132 |
+
"Mu;": "\u039C",
|
| 1133 |
+
"mu;": "\u03BC",
|
| 1134 |
+
"multimap;": "\u22B8",
|
| 1135 |
+
"mumap;": "\u22B8",
|
| 1136 |
+
"nabla;": "\u2207",
|
| 1137 |
+
"Nacute;": "\u0143",
|
| 1138 |
+
"nacute;": "\u0144",
|
| 1139 |
+
"nang;": "\u2220\u20D2",
|
| 1140 |
+
"nap;": "\u2249",
|
| 1141 |
+
"napE;": "\u2A70\u0338",
|
| 1142 |
+
"napid;": "\u224B\u0338",
|
| 1143 |
+
"napos;": "\u0149",
|
| 1144 |
+
"napprox;": "\u2249",
|
| 1145 |
+
"natur;": "\u266E",
|
| 1146 |
+
"natural;": "\u266E",
|
| 1147 |
+
"naturals;": "\u2115",
|
| 1148 |
+
"nbsp;": "\u00A0",
|
| 1149 |
+
"nbsp": "\u00A0",
|
| 1150 |
+
"nbump;": "\u224E\u0338",
|
| 1151 |
+
"nbumpe;": "\u224F\u0338",
|
| 1152 |
+
"ncap;": "\u2A43",
|
| 1153 |
+
"Ncaron;": "\u0147",
|
| 1154 |
+
"ncaron;": "\u0148",
|
| 1155 |
+
"Ncedil;": "\u0145",
|
| 1156 |
+
"ncedil;": "\u0146",
|
| 1157 |
+
"ncong;": "\u2247",
|
| 1158 |
+
"ncongdot;": "\u2A6D\u0338",
|
| 1159 |
+
"ncup;": "\u2A42",
|
| 1160 |
+
"Ncy;": "\u041D",
|
| 1161 |
+
"ncy;": "\u043D",
|
| 1162 |
+
"ndash;": "\u2013",
|
| 1163 |
+
"ne;": "\u2260",
|
| 1164 |
+
"nearhk;": "\u2924",
|
| 1165 |
+
"neArr;": "\u21D7",
|
| 1166 |
+
"nearr;": "\u2197",
|
| 1167 |
+
"nearrow;": "\u2197",
|
| 1168 |
+
"nedot;": "\u2250\u0338",
|
| 1169 |
+
"NegativeMediumSpace;": "\u200B",
|
| 1170 |
+
"NegativeThickSpace;": "\u200B",
|
| 1171 |
+
"NegativeThinSpace;": "\u200B",
|
| 1172 |
+
"NegativeVeryThinSpace;": "\u200B",
|
| 1173 |
+
"nequiv;": "\u2262",
|
| 1174 |
+
"nesear;": "\u2928",
|
| 1175 |
+
"nesim;": "\u2242\u0338",
|
| 1176 |
+
"NestedGreaterGreater;": "\u226B",
|
| 1177 |
+
"NestedLessLess;": "\u226A",
|
| 1178 |
+
"NewLine;": "\u000A",
|
| 1179 |
+
"nexist;": "\u2204",
|
| 1180 |
+
"nexists;": "\u2204",
|
| 1181 |
+
"Nfr;": "\uD835\uDD11",
|
| 1182 |
+
"nfr;": "\uD835\uDD2B",
|
| 1183 |
+
"ngE;": "\u2267\u0338",
|
| 1184 |
+
"nge;": "\u2271",
|
| 1185 |
+
"ngeq;": "\u2271",
|
| 1186 |
+
"ngeqq;": "\u2267\u0338",
|
| 1187 |
+
"ngeqslant;": "\u2A7E\u0338",
|
| 1188 |
+
"nges;": "\u2A7E\u0338",
|
| 1189 |
+
"nGg;": "\u22D9\u0338",
|
| 1190 |
+
"ngsim;": "\u2275",
|
| 1191 |
+
"nGt;": "\u226B\u20D2",
|
| 1192 |
+
"ngt;": "\u226F",
|
| 1193 |
+
"ngtr;": "\u226F",
|
| 1194 |
+
"nGtv;": "\u226B\u0338",
|
| 1195 |
+
"nhArr;": "\u21CE",
|
| 1196 |
+
"nharr;": "\u21AE",
|
| 1197 |
+
"nhpar;": "\u2AF2",
|
| 1198 |
+
"ni;": "\u220B",
|
| 1199 |
+
"nis;": "\u22FC",
|
| 1200 |
+
"nisd;": "\u22FA",
|
| 1201 |
+
"niv;": "\u220B",
|
| 1202 |
+
"NJcy;": "\u040A",
|
| 1203 |
+
"njcy;": "\u045A",
|
| 1204 |
+
"nlArr;": "\u21CD",
|
| 1205 |
+
"nlarr;": "\u219A",
|
| 1206 |
+
"nldr;": "\u2025",
|
| 1207 |
+
"nlE;": "\u2266\u0338",
|
| 1208 |
+
"nle;": "\u2270",
|
| 1209 |
+
"nLeftarrow;": "\u21CD",
|
| 1210 |
+
"nleftarrow;": "\u219A",
|
| 1211 |
+
"nLeftrightarrow;": "\u21CE",
|
| 1212 |
+
"nleftrightarrow;": "\u21AE",
|
| 1213 |
+
"nleq;": "\u2270",
|
| 1214 |
+
"nleqq;": "\u2266\u0338",
|
| 1215 |
+
"nleqslant;": "\u2A7D\u0338",
|
| 1216 |
+
"nles;": "\u2A7D\u0338",
|
| 1217 |
+
"nless;": "\u226E",
|
| 1218 |
+
"nLl;": "\u22D8\u0338",
|
| 1219 |
+
"nlsim;": "\u2274",
|
| 1220 |
+
"nLt;": "\u226A\u20D2",
|
| 1221 |
+
"nlt;": "\u226E",
|
| 1222 |
+
"nltri;": "\u22EA",
|
| 1223 |
+
"nltrie;": "\u22EC",
|
| 1224 |
+
"nLtv;": "\u226A\u0338",
|
| 1225 |
+
"nmid;": "\u2224",
|
| 1226 |
+
"NoBreak;": "\u2060",
|
| 1227 |
+
"NonBreakingSpace;": "\u00A0",
|
| 1228 |
+
"Nopf;": "\u2115",
|
| 1229 |
+
"nopf;": "\uD835\uDD5F",
|
| 1230 |
+
"Not;": "\u2AEC",
|
| 1231 |
+
"not;": "\u00AC",
|
| 1232 |
+
"not": "\u00AC",
|
| 1233 |
+
"NotCongruent;": "\u2262",
|
| 1234 |
+
"NotCupCap;": "\u226D",
|
| 1235 |
+
"NotDoubleVerticalBar;": "\u2226",
|
| 1236 |
+
"NotElement;": "\u2209",
|
| 1237 |
+
"NotEqual;": "\u2260",
|
| 1238 |
+
"NotEqualTilde;": "\u2242\u0338",
|
| 1239 |
+
"NotExists;": "\u2204",
|
| 1240 |
+
"NotGreater;": "\u226F",
|
| 1241 |
+
"NotGreaterEqual;": "\u2271",
|
| 1242 |
+
"NotGreaterFullEqual;": "\u2267\u0338",
|
| 1243 |
+
"NotGreaterGreater;": "\u226B\u0338",
|
| 1244 |
+
"NotGreaterLess;": "\u2279",
|
| 1245 |
+
"NotGreaterSlantEqual;": "\u2A7E\u0338",
|
| 1246 |
+
"NotGreaterTilde;": "\u2275",
|
| 1247 |
+
"NotHumpDownHump;": "\u224E\u0338",
|
| 1248 |
+
"NotHumpEqual;": "\u224F\u0338",
|
| 1249 |
+
"notin;": "\u2209",
|
| 1250 |
+
"notindot;": "\u22F5\u0338",
|
| 1251 |
+
"notinE;": "\u22F9\u0338",
|
| 1252 |
+
"notinva;": "\u2209",
|
| 1253 |
+
"notinvb;": "\u22F7",
|
| 1254 |
+
"notinvc;": "\u22F6",
|
| 1255 |
+
"NotLeftTriangle;": "\u22EA",
|
| 1256 |
+
"NotLeftTriangleBar;": "\u29CF\u0338",
|
| 1257 |
+
"NotLeftTriangleEqual;": "\u22EC",
|
| 1258 |
+
"NotLess;": "\u226E",
|
| 1259 |
+
"NotLessEqual;": "\u2270",
|
| 1260 |
+
"NotLessGreater;": "\u2278",
|
| 1261 |
+
"NotLessLess;": "\u226A\u0338",
|
| 1262 |
+
"NotLessSlantEqual;": "\u2A7D\u0338",
|
| 1263 |
+
"NotLessTilde;": "\u2274",
|
| 1264 |
+
"NotNestedGreaterGreater;": "\u2AA2\u0338",
|
| 1265 |
+
"NotNestedLessLess;": "\u2AA1\u0338",
|
| 1266 |
+
"notni;": "\u220C",
|
| 1267 |
+
"notniva;": "\u220C",
|
| 1268 |
+
"notnivb;": "\u22FE",
|
| 1269 |
+
"notnivc;": "\u22FD",
|
| 1270 |
+
"NotPrecedes;": "\u2280",
|
| 1271 |
+
"NotPrecedesEqual;": "\u2AAF\u0338",
|
| 1272 |
+
"NotPrecedesSlantEqual;": "\u22E0",
|
| 1273 |
+
"NotReverseElement;": "\u220C",
|
| 1274 |
+
"NotRightTriangle;": "\u22EB",
|
| 1275 |
+
"NotRightTriangleBar;": "\u29D0\u0338",
|
| 1276 |
+
"NotRightTriangleEqual;": "\u22ED",
|
| 1277 |
+
"NotSquareSubset;": "\u228F\u0338",
|
| 1278 |
+
"NotSquareSubsetEqual;": "\u22E2",
|
| 1279 |
+
"NotSquareSuperset;": "\u2290\u0338",
|
| 1280 |
+
"NotSquareSupersetEqual;": "\u22E3",
|
| 1281 |
+
"NotSubset;": "\u2282\u20D2",
|
| 1282 |
+
"NotSubsetEqual;": "\u2288",
|
| 1283 |
+
"NotSucceeds;": "\u2281",
|
| 1284 |
+
"NotSucceedsEqual;": "\u2AB0\u0338",
|
| 1285 |
+
"NotSucceedsSlantEqual;": "\u22E1",
|
| 1286 |
+
"NotSucceedsTilde;": "\u227F\u0338",
|
| 1287 |
+
"NotSuperset;": "\u2283\u20D2",
|
| 1288 |
+
"NotSupersetEqual;": "\u2289",
|
| 1289 |
+
"NotTilde;": "\u2241",
|
| 1290 |
+
"NotTildeEqual;": "\u2244",
|
| 1291 |
+
"NotTildeFullEqual;": "\u2247",
|
| 1292 |
+
"NotTildeTilde;": "\u2249",
|
| 1293 |
+
"NotVerticalBar;": "\u2224",
|
| 1294 |
+
"npar;": "\u2226",
|
| 1295 |
+
"nparallel;": "\u2226",
|
| 1296 |
+
"nparsl;": "\u2AFD\u20E5",
|
| 1297 |
+
"npart;": "\u2202\u0338",
|
| 1298 |
+
"npolint;": "\u2A14",
|
| 1299 |
+
"npr;": "\u2280",
|
| 1300 |
+
"nprcue;": "\u22E0",
|
| 1301 |
+
"npre;": "\u2AAF\u0338",
|
| 1302 |
+
"nprec;": "\u2280",
|
| 1303 |
+
"npreceq;": "\u2AAF\u0338",
|
| 1304 |
+
"nrArr;": "\u21CF",
|
| 1305 |
+
"nrarr;": "\u219B",
|
| 1306 |
+
"nrarrc;": "\u2933\u0338",
|
| 1307 |
+
"nrarrw;": "\u219D\u0338",
|
| 1308 |
+
"nRightarrow;": "\u21CF",
|
| 1309 |
+
"nrightarrow;": "\u219B",
|
| 1310 |
+
"nrtri;": "\u22EB",
|
| 1311 |
+
"nrtrie;": "\u22ED",
|
| 1312 |
+
"nsc;": "\u2281",
|
| 1313 |
+
"nsccue;": "\u22E1",
|
| 1314 |
+
"nsce;": "\u2AB0\u0338",
|
| 1315 |
+
"Nscr;": "\uD835\uDCA9",
|
| 1316 |
+
"nscr;": "\uD835\uDCC3",
|
| 1317 |
+
"nshortmid;": "\u2224",
|
| 1318 |
+
"nshortparallel;": "\u2226",
|
| 1319 |
+
"nsim;": "\u2241",
|
| 1320 |
+
"nsime;": "\u2244",
|
| 1321 |
+
"nsimeq;": "\u2244",
|
| 1322 |
+
"nsmid;": "\u2224",
|
| 1323 |
+
"nspar;": "\u2226",
|
| 1324 |
+
"nsqsube;": "\u22E2",
|
| 1325 |
+
"nsqsupe;": "\u22E3",
|
| 1326 |
+
"nsub;": "\u2284",
|
| 1327 |
+
"nsubE;": "\u2AC5\u0338",
|
| 1328 |
+
"nsube;": "\u2288",
|
| 1329 |
+
"nsubset;": "\u2282\u20D2",
|
| 1330 |
+
"nsubseteq;": "\u2288",
|
| 1331 |
+
"nsubseteqq;": "\u2AC5\u0338",
|
| 1332 |
+
"nsucc;": "\u2281",
|
| 1333 |
+
"nsucceq;": "\u2AB0\u0338",
|
| 1334 |
+
"nsup;": "\u2285",
|
| 1335 |
+
"nsupE;": "\u2AC6\u0338",
|
| 1336 |
+
"nsupe;": "\u2289",
|
| 1337 |
+
"nsupset;": "\u2283\u20D2",
|
| 1338 |
+
"nsupseteq;": "\u2289",
|
| 1339 |
+
"nsupseteqq;": "\u2AC6\u0338",
|
| 1340 |
+
"ntgl;": "\u2279",
|
| 1341 |
+
"Ntilde;": "\u00D1",
|
| 1342 |
+
"Ntilde": "\u00D1",
|
| 1343 |
+
"ntilde;": "\u00F1",
|
| 1344 |
+
"ntilde": "\u00F1",
|
| 1345 |
+
"ntlg;": "\u2278",
|
| 1346 |
+
"ntriangleleft;": "\u22EA",
|
| 1347 |
+
"ntrianglelefteq;": "\u22EC",
|
| 1348 |
+
"ntriangleright;": "\u22EB",
|
| 1349 |
+
"ntrianglerighteq;": "\u22ED",
|
| 1350 |
+
"Nu;": "\u039D",
|
| 1351 |
+
"nu;": "\u03BD",
|
| 1352 |
+
"num;": "\u0023",
|
| 1353 |
+
"numero;": "\u2116",
|
| 1354 |
+
"numsp;": "\u2007",
|
| 1355 |
+
"nvap;": "\u224D\u20D2",
|
| 1356 |
+
"nVDash;": "\u22AF",
|
| 1357 |
+
"nVdash;": "\u22AE",
|
| 1358 |
+
"nvDash;": "\u22AD",
|
| 1359 |
+
"nvdash;": "\u22AC",
|
| 1360 |
+
"nvge;": "\u2265\u20D2",
|
| 1361 |
+
"nvgt;": "\u003E\u20D2",
|
| 1362 |
+
"nvHarr;": "\u2904",
|
| 1363 |
+
"nvinfin;": "\u29DE",
|
| 1364 |
+
"nvlArr;": "\u2902",
|
| 1365 |
+
"nvle;": "\u2264\u20D2",
|
| 1366 |
+
"nvlt;": "\u003C\u20D2",
|
| 1367 |
+
"nvltrie;": "\u22B4\u20D2",
|
| 1368 |
+
"nvrArr;": "\u2903",
|
| 1369 |
+
"nvrtrie;": "\u22B5\u20D2",
|
| 1370 |
+
"nvsim;": "\u223C\u20D2",
|
| 1371 |
+
"nwarhk;": "\u2923",
|
| 1372 |
+
"nwArr;": "\u21D6",
|
| 1373 |
+
"nwarr;": "\u2196",
|
| 1374 |
+
"nwarrow;": "\u2196",
|
| 1375 |
+
"nwnear;": "\u2927",
|
| 1376 |
+
"Oacute;": "\u00D3",
|
| 1377 |
+
"Oacute": "\u00D3",
|
| 1378 |
+
"oacute;": "\u00F3",
|
| 1379 |
+
"oacute": "\u00F3",
|
| 1380 |
+
"oast;": "\u229B",
|
| 1381 |
+
"ocir;": "\u229A",
|
| 1382 |
+
"Ocirc;": "\u00D4",
|
| 1383 |
+
"Ocirc": "\u00D4",
|
| 1384 |
+
"ocirc;": "\u00F4",
|
| 1385 |
+
"ocirc": "\u00F4",
|
| 1386 |
+
"Ocy;": "\u041E",
|
| 1387 |
+
"ocy;": "\u043E",
|
| 1388 |
+
"odash;": "\u229D",
|
| 1389 |
+
"Odblac;": "\u0150",
|
| 1390 |
+
"odblac;": "\u0151",
|
| 1391 |
+
"odiv;": "\u2A38",
|
| 1392 |
+
"odot;": "\u2299",
|
| 1393 |
+
"odsold;": "\u29BC",
|
| 1394 |
+
"OElig;": "\u0152",
|
| 1395 |
+
"oelig;": "\u0153",
|
| 1396 |
+
"ofcir;": "\u29BF",
|
| 1397 |
+
"Ofr;": "\uD835\uDD12",
|
| 1398 |
+
"ofr;": "\uD835\uDD2C",
|
| 1399 |
+
"ogon;": "\u02DB",
|
| 1400 |
+
"Ograve;": "\u00D2",
|
| 1401 |
+
"Ograve": "\u00D2",
|
| 1402 |
+
"ograve;": "\u00F2",
|
| 1403 |
+
"ograve": "\u00F2",
|
| 1404 |
+
"ogt;": "\u29C1",
|
| 1405 |
+
"ohbar;": "\u29B5",
|
| 1406 |
+
"ohm;": "\u03A9",
|
| 1407 |
+
"oint;": "\u222E",
|
| 1408 |
+
"olarr;": "\u21BA",
|
| 1409 |
+
"olcir;": "\u29BE",
|
| 1410 |
+
"olcross;": "\u29BB",
|
| 1411 |
+
"oline;": "\u203E",
|
| 1412 |
+
"olt;": "\u29C0",
|
| 1413 |
+
"Omacr;": "\u014C",
|
| 1414 |
+
"omacr;": "\u014D",
|
| 1415 |
+
"Omega;": "\u03A9",
|
| 1416 |
+
"omega;": "\u03C9",
|
| 1417 |
+
"Omicron;": "\u039F",
|
| 1418 |
+
"omicron;": "\u03BF",
|
| 1419 |
+
"omid;": "\u29B6",
|
| 1420 |
+
"ominus;": "\u2296",
|
| 1421 |
+
"Oopf;": "\uD835\uDD46",
|
| 1422 |
+
"oopf;": "\uD835\uDD60",
|
| 1423 |
+
"opar;": "\u29B7",
|
| 1424 |
+
"OpenCurlyDoubleQuote;": "\u201C",
|
| 1425 |
+
"OpenCurlyQuote;": "\u2018",
|
| 1426 |
+
"operp;": "\u29B9",
|
| 1427 |
+
"oplus;": "\u2295",
|
| 1428 |
+
"Or;": "\u2A54",
|
| 1429 |
+
"or;": "\u2228",
|
| 1430 |
+
"orarr;": "\u21BB",
|
| 1431 |
+
"ord;": "\u2A5D",
|
| 1432 |
+
"order;": "\u2134",
|
| 1433 |
+
"orderof;": "\u2134",
|
| 1434 |
+
"ordf;": "\u00AA",
|
| 1435 |
+
"ordf": "\u00AA",
|
| 1436 |
+
"ordm;": "\u00BA",
|
| 1437 |
+
"ordm": "\u00BA",
|
| 1438 |
+
"origof;": "\u22B6",
|
| 1439 |
+
"oror;": "\u2A56",
|
| 1440 |
+
"orslope;": "\u2A57",
|
| 1441 |
+
"orv;": "\u2A5B",
|
| 1442 |
+
"oS;": "\u24C8",
|
| 1443 |
+
"Oscr;": "\uD835\uDCAA",
|
| 1444 |
+
"oscr;": "\u2134",
|
| 1445 |
+
"Oslash;": "\u00D8",
|
| 1446 |
+
"Oslash": "\u00D8",
|
| 1447 |
+
"oslash;": "\u00F8",
|
| 1448 |
+
"oslash": "\u00F8",
|
| 1449 |
+
"osol;": "\u2298",
|
| 1450 |
+
"Otilde;": "\u00D5",
|
| 1451 |
+
"Otilde": "\u00D5",
|
| 1452 |
+
"otilde;": "\u00F5",
|
| 1453 |
+
"otilde": "\u00F5",
|
| 1454 |
+
"Otimes;": "\u2A37",
|
| 1455 |
+
"otimes;": "\u2297",
|
| 1456 |
+
"otimesas;": "\u2A36",
|
| 1457 |
+
"Ouml;": "\u00D6",
|
| 1458 |
+
"Ouml": "\u00D6",
|
| 1459 |
+
"ouml;": "\u00F6",
|
| 1460 |
+
"ouml": "\u00F6",
|
| 1461 |
+
"ovbar;": "\u233D",
|
| 1462 |
+
"OverBar;": "\u203E",
|
| 1463 |
+
"OverBrace;": "\u23DE",
|
| 1464 |
+
"OverBracket;": "\u23B4",
|
| 1465 |
+
"OverParenthesis;": "\u23DC",
|
| 1466 |
+
"par;": "\u2225",
|
| 1467 |
+
"para;": "\u00B6",
|
| 1468 |
+
"para": "\u00B6",
|
| 1469 |
+
"parallel;": "\u2225",
|
| 1470 |
+
"parsim;": "\u2AF3",
|
| 1471 |
+
"parsl;": "\u2AFD",
|
| 1472 |
+
"part;": "\u2202",
|
| 1473 |
+
"PartialD;": "\u2202",
|
| 1474 |
+
"Pcy;": "\u041F",
|
| 1475 |
+
"pcy;": "\u043F",
|
| 1476 |
+
"percnt;": "\u0025",
|
| 1477 |
+
"period;": "\u002E",
|
| 1478 |
+
"permil;": "\u2030",
|
| 1479 |
+
"perp;": "\u22A5",
|
| 1480 |
+
"pertenk;": "\u2031",
|
| 1481 |
+
"Pfr;": "\uD835\uDD13",
|
| 1482 |
+
"pfr;": "\uD835\uDD2D",
|
| 1483 |
+
"Phi;": "\u03A6",
|
| 1484 |
+
"phi;": "\u03C6",
|
| 1485 |
+
"phiv;": "\u03D5",
|
| 1486 |
+
"phmmat;": "\u2133",
|
| 1487 |
+
"phone;": "\u260E",
|
| 1488 |
+
"Pi;": "\u03A0",
|
| 1489 |
+
"pi;": "\u03C0",
|
| 1490 |
+
"pitchfork;": "\u22D4",
|
| 1491 |
+
"piv;": "\u03D6",
|
| 1492 |
+
"planck;": "\u210F",
|
| 1493 |
+
"planckh;": "\u210E",
|
| 1494 |
+
"plankv;": "\u210F",
|
| 1495 |
+
"plus;": "\u002B",
|
| 1496 |
+
"plusacir;": "\u2A23",
|
| 1497 |
+
"plusb;": "\u229E",
|
| 1498 |
+
"pluscir;": "\u2A22",
|
| 1499 |
+
"plusdo;": "\u2214",
|
| 1500 |
+
"plusdu;": "\u2A25",
|
| 1501 |
+
"pluse;": "\u2A72",
|
| 1502 |
+
"PlusMinus;": "\u00B1",
|
| 1503 |
+
"plusmn;": "\u00B1",
|
| 1504 |
+
"plusmn": "\u00B1",
|
| 1505 |
+
"plussim;": "\u2A26",
|
| 1506 |
+
"plustwo;": "\u2A27",
|
| 1507 |
+
"pm;": "\u00B1",
|
| 1508 |
+
"Poincareplane;": "\u210C",
|
| 1509 |
+
"pointint;": "\u2A15",
|
| 1510 |
+
"Popf;": "\u2119",
|
| 1511 |
+
"popf;": "\uD835\uDD61",
|
| 1512 |
+
"pound;": "\u00A3",
|
| 1513 |
+
"pound": "\u00A3",
|
| 1514 |
+
"Pr;": "\u2ABB",
|
| 1515 |
+
"pr;": "\u227A",
|
| 1516 |
+
"prap;": "\u2AB7",
|
| 1517 |
+
"prcue;": "\u227C",
|
| 1518 |
+
"prE;": "\u2AB3",
|
| 1519 |
+
"pre;": "\u2AAF",
|
| 1520 |
+
"prec;": "\u227A",
|
| 1521 |
+
"precapprox;": "\u2AB7",
|
| 1522 |
+
"preccurlyeq;": "\u227C",
|
| 1523 |
+
"Precedes;": "\u227A",
|
| 1524 |
+
"PrecedesEqual;": "\u2AAF",
|
| 1525 |
+
"PrecedesSlantEqual;": "\u227C",
|
| 1526 |
+
"PrecedesTilde;": "\u227E",
|
| 1527 |
+
"preceq;": "\u2AAF",
|
| 1528 |
+
"precnapprox;": "\u2AB9",
|
| 1529 |
+
"precneqq;": "\u2AB5",
|
| 1530 |
+
"precnsim;": "\u22E8",
|
| 1531 |
+
"precsim;": "\u227E",
|
| 1532 |
+
"Prime;": "\u2033",
|
| 1533 |
+
"prime;": "\u2032",
|
| 1534 |
+
"primes;": "\u2119",
|
| 1535 |
+
"prnap;": "\u2AB9",
|
| 1536 |
+
"prnE;": "\u2AB5",
|
| 1537 |
+
"prnsim;": "\u22E8",
|
| 1538 |
+
"prod;": "\u220F",
|
| 1539 |
+
"Product;": "\u220F",
|
| 1540 |
+
"profalar;": "\u232E",
|
| 1541 |
+
"profline;": "\u2312",
|
| 1542 |
+
"profsurf;": "\u2313",
|
| 1543 |
+
"prop;": "\u221D",
|
| 1544 |
+
"Proportion;": "\u2237",
|
| 1545 |
+
"Proportional;": "\u221D",
|
| 1546 |
+
"propto;": "\u221D",
|
| 1547 |
+
"prsim;": "\u227E",
|
| 1548 |
+
"prurel;": "\u22B0",
|
| 1549 |
+
"Pscr;": "\uD835\uDCAB",
|
| 1550 |
+
"pscr;": "\uD835\uDCC5",
|
| 1551 |
+
"Psi;": "\u03A8",
|
| 1552 |
+
"psi;": "\u03C8",
|
| 1553 |
+
"puncsp;": "\u2008",
|
| 1554 |
+
"Qfr;": "\uD835\uDD14",
|
| 1555 |
+
"qfr;": "\uD835\uDD2E",
|
| 1556 |
+
"qint;": "\u2A0C",
|
| 1557 |
+
"Qopf;": "\u211A",
|
| 1558 |
+
"qopf;": "\uD835\uDD62",
|
| 1559 |
+
"qprime;": "\u2057",
|
| 1560 |
+
"Qscr;": "\uD835\uDCAC",
|
| 1561 |
+
"qscr;": "\uD835\uDCC6",
|
| 1562 |
+
"quaternions;": "\u210D",
|
| 1563 |
+
"quatint;": "\u2A16",
|
| 1564 |
+
"quest;": "\u003F",
|
| 1565 |
+
"questeq;": "\u225F",
|
| 1566 |
+
"QUOT;": "\u0022",
|
| 1567 |
+
"QUOT": "\u0022",
|
| 1568 |
+
"quot;": "\u0022",
|
| 1569 |
+
"quot": "\u0022",
|
| 1570 |
+
"rAarr;": "\u21DB",
|
| 1571 |
+
"race;": "\u223D\u0331",
|
| 1572 |
+
"Racute;": "\u0154",
|
| 1573 |
+
"racute;": "\u0155",
|
| 1574 |
+
"radic;": "\u221A",
|
| 1575 |
+
"raemptyv;": "\u29B3",
|
| 1576 |
+
"Rang;": "\u27EB",
|
| 1577 |
+
"rang;": "\u27E9",
|
| 1578 |
+
"rangd;": "\u2992",
|
| 1579 |
+
"range;": "\u29A5",
|
| 1580 |
+
"rangle;": "\u27E9",
|
| 1581 |
+
"raquo;": "\u00BB",
|
| 1582 |
+
"raquo": "\u00BB",
|
| 1583 |
+
"Rarr;": "\u21A0",
|
| 1584 |
+
"rArr;": "\u21D2",
|
| 1585 |
+
"rarr;": "\u2192",
|
| 1586 |
+
"rarrap;": "\u2975",
|
| 1587 |
+
"rarrb;": "\u21E5",
|
| 1588 |
+
"rarrbfs;": "\u2920",
|
| 1589 |
+
"rarrc;": "\u2933",
|
| 1590 |
+
"rarrfs;": "\u291E",
|
| 1591 |
+
"rarrhk;": "\u21AA",
|
| 1592 |
+
"rarrlp;": "\u21AC",
|
| 1593 |
+
"rarrpl;": "\u2945",
|
| 1594 |
+
"rarrsim;": "\u2974",
|
| 1595 |
+
"Rarrtl;": "\u2916",
|
| 1596 |
+
"rarrtl;": "\u21A3",
|
| 1597 |
+
"rarrw;": "\u219D",
|
| 1598 |
+
"rAtail;": "\u291C",
|
| 1599 |
+
"ratail;": "\u291A",
|
| 1600 |
+
"ratio;": "\u2236",
|
| 1601 |
+
"rationals;": "\u211A",
|
| 1602 |
+
"RBarr;": "\u2910",
|
| 1603 |
+
"rBarr;": "\u290F",
|
| 1604 |
+
"rbarr;": "\u290D",
|
| 1605 |
+
"rbbrk;": "\u2773",
|
| 1606 |
+
"rbrace;": "\u007D",
|
| 1607 |
+
"rbrack;": "\u005D",
|
| 1608 |
+
"rbrke;": "\u298C",
|
| 1609 |
+
"rbrksld;": "\u298E",
|
| 1610 |
+
"rbrkslu;": "\u2990",
|
| 1611 |
+
"Rcaron;": "\u0158",
|
| 1612 |
+
"rcaron;": "\u0159",
|
| 1613 |
+
"Rcedil;": "\u0156",
|
| 1614 |
+
"rcedil;": "\u0157",
|
| 1615 |
+
"rceil;": "\u2309",
|
| 1616 |
+
"rcub;": "\u007D",
|
| 1617 |
+
"Rcy;": "\u0420",
|
| 1618 |
+
"rcy;": "\u0440",
|
| 1619 |
+
"rdca;": "\u2937",
|
| 1620 |
+
"rdldhar;": "\u2969",
|
| 1621 |
+
"rdquo;": "\u201D",
|
| 1622 |
+
"rdquor;": "\u201D",
|
| 1623 |
+
"rdsh;": "\u21B3",
|
| 1624 |
+
"Re;": "\u211C",
|
| 1625 |
+
"real;": "\u211C",
|
| 1626 |
+
"realine;": "\u211B",
|
| 1627 |
+
"realpart;": "\u211C",
|
| 1628 |
+
"reals;": "\u211D",
|
| 1629 |
+
"rect;": "\u25AD",
|
| 1630 |
+
"REG;": "\u00AE",
|
| 1631 |
+
"REG": "\u00AE",
|
| 1632 |
+
"reg;": "\u00AE",
|
| 1633 |
+
"reg": "\u00AE",
|
| 1634 |
+
"ReverseElement;": "\u220B",
|
| 1635 |
+
"ReverseEquilibrium;": "\u21CB",
|
| 1636 |
+
"ReverseUpEquilibrium;": "\u296F",
|
| 1637 |
+
"rfisht;": "\u297D",
|
| 1638 |
+
"rfloor;": "\u230B",
|
| 1639 |
+
"Rfr;": "\u211C",
|
| 1640 |
+
"rfr;": "\uD835\uDD2F",
|
| 1641 |
+
"rHar;": "\u2964",
|
| 1642 |
+
"rhard;": "\u21C1",
|
| 1643 |
+
"rharu;": "\u21C0",
|
| 1644 |
+
"rharul;": "\u296C",
|
| 1645 |
+
"Rho;": "\u03A1",
|
| 1646 |
+
"rho;": "\u03C1",
|
| 1647 |
+
"rhov;": "\u03F1",
|
| 1648 |
+
"RightAngleBracket;": "\u27E9",
|
| 1649 |
+
"RightArrow;": "\u2192",
|
| 1650 |
+
"Rightarrow;": "\u21D2",
|
| 1651 |
+
"rightarrow;": "\u2192",
|
| 1652 |
+
"RightArrowBar;": "\u21E5",
|
| 1653 |
+
"RightArrowLeftArrow;": "\u21C4",
|
| 1654 |
+
"rightarrowtail;": "\u21A3",
|
| 1655 |
+
"RightCeiling;": "\u2309",
|
| 1656 |
+
"RightDoubleBracket;": "\u27E7",
|
| 1657 |
+
"RightDownTeeVector;": "\u295D",
|
| 1658 |
+
"RightDownVector;": "\u21C2",
|
| 1659 |
+
"RightDownVectorBar;": "\u2955",
|
| 1660 |
+
"RightFloor;": "\u230B",
|
| 1661 |
+
"rightharpoondown;": "\u21C1",
|
| 1662 |
+
"rightharpoonup;": "\u21C0",
|
| 1663 |
+
"rightleftarrows;": "\u21C4",
|
| 1664 |
+
"rightleftharpoons;": "\u21CC",
|
| 1665 |
+
"rightrightarrows;": "\u21C9",
|
| 1666 |
+
"rightsquigarrow;": "\u219D",
|
| 1667 |
+
"RightTee;": "\u22A2",
|
| 1668 |
+
"RightTeeArrow;": "\u21A6",
|
| 1669 |
+
"RightTeeVector;": "\u295B",
|
| 1670 |
+
"rightthreetimes;": "\u22CC",
|
| 1671 |
+
"RightTriangle;": "\u22B3",
|
| 1672 |
+
"RightTriangleBar;": "\u29D0",
|
| 1673 |
+
"RightTriangleEqual;": "\u22B5",
|
| 1674 |
+
"RightUpDownVector;": "\u294F",
|
| 1675 |
+
"RightUpTeeVector;": "\u295C",
|
| 1676 |
+
"RightUpVector;": "\u21BE",
|
| 1677 |
+
"RightUpVectorBar;": "\u2954",
|
| 1678 |
+
"RightVector;": "\u21C0",
|
| 1679 |
+
"RightVectorBar;": "\u2953",
|
| 1680 |
+
"ring;": "\u02DA",
|
| 1681 |
+
"risingdotseq;": "\u2253",
|
| 1682 |
+
"rlarr;": "\u21C4",
|
| 1683 |
+
"rlhar;": "\u21CC",
|
| 1684 |
+
"rlm;": "\u200F",
|
| 1685 |
+
"rmoust;": "\u23B1",
|
| 1686 |
+
"rmoustache;": "\u23B1",
|
| 1687 |
+
"rnmid;": "\u2AEE",
|
| 1688 |
+
"roang;": "\u27ED",
|
| 1689 |
+
"roarr;": "\u21FE",
|
| 1690 |
+
"robrk;": "\u27E7",
|
| 1691 |
+
"ropar;": "\u2986",
|
| 1692 |
+
"Ropf;": "\u211D",
|
| 1693 |
+
"ropf;": "\uD835\uDD63",
|
| 1694 |
+
"roplus;": "\u2A2E",
|
| 1695 |
+
"rotimes;": "\u2A35",
|
| 1696 |
+
"RoundImplies;": "\u2970",
|
| 1697 |
+
"rpar;": "\u0029",
|
| 1698 |
+
"rpargt;": "\u2994",
|
| 1699 |
+
"rppolint;": "\u2A12",
|
| 1700 |
+
"rrarr;": "\u21C9",
|
| 1701 |
+
"Rrightarrow;": "\u21DB",
|
| 1702 |
+
"rsaquo;": "\u203A",
|
| 1703 |
+
"Rscr;": "\u211B",
|
| 1704 |
+
"rscr;": "\uD835\uDCC7",
|
| 1705 |
+
"Rsh;": "\u21B1",
|
| 1706 |
+
"rsh;": "\u21B1",
|
| 1707 |
+
"rsqb;": "\u005D",
|
| 1708 |
+
"rsquo;": "\u2019",
|
| 1709 |
+
"rsquor;": "\u2019",
|
| 1710 |
+
"rthree;": "\u22CC",
|
| 1711 |
+
"rtimes;": "\u22CA",
|
| 1712 |
+
"rtri;": "\u25B9",
|
| 1713 |
+
"rtrie;": "\u22B5",
|
| 1714 |
+
"rtrif;": "\u25B8",
|
| 1715 |
+
"rtriltri;": "\u29CE",
|
| 1716 |
+
"RuleDelayed;": "\u29F4",
|
| 1717 |
+
"ruluhar;": "\u2968",
|
| 1718 |
+
"rx;": "\u211E",
|
| 1719 |
+
"Sacute;": "\u015A",
|
| 1720 |
+
"sacute;": "\u015B",
|
| 1721 |
+
"sbquo;": "\u201A",
|
| 1722 |
+
"Sc;": "\u2ABC",
|
| 1723 |
+
"sc;": "\u227B",
|
| 1724 |
+
"scap;": "\u2AB8",
|
| 1725 |
+
"Scaron;": "\u0160",
|
| 1726 |
+
"scaron;": "\u0161",
|
| 1727 |
+
"sccue;": "\u227D",
|
| 1728 |
+
"scE;": "\u2AB4",
|
| 1729 |
+
"sce;": "\u2AB0",
|
| 1730 |
+
"Scedil;": "\u015E",
|
| 1731 |
+
"scedil;": "\u015F",
|
| 1732 |
+
"Scirc;": "\u015C",
|
| 1733 |
+
"scirc;": "\u015D",
|
| 1734 |
+
"scnap;": "\u2ABA",
|
| 1735 |
+
"scnE;": "\u2AB6",
|
| 1736 |
+
"scnsim;": "\u22E9",
|
| 1737 |
+
"scpolint;": "\u2A13",
|
| 1738 |
+
"scsim;": "\u227F",
|
| 1739 |
+
"Scy;": "\u0421",
|
| 1740 |
+
"scy;": "\u0441",
|
| 1741 |
+
"sdot;": "\u22C5",
|
| 1742 |
+
"sdotb;": "\u22A1",
|
| 1743 |
+
"sdote;": "\u2A66",
|
| 1744 |
+
"searhk;": "\u2925",
|
| 1745 |
+
"seArr;": "\u21D8",
|
| 1746 |
+
"searr;": "\u2198",
|
| 1747 |
+
"searrow;": "\u2198",
|
| 1748 |
+
"sect;": "\u00A7",
|
| 1749 |
+
"sect": "\u00A7",
|
| 1750 |
+
"semi;": "\u003B",
|
| 1751 |
+
"seswar;": "\u2929",
|
| 1752 |
+
"setminus;": "\u2216",
|
| 1753 |
+
"setmn;": "\u2216",
|
| 1754 |
+
"sext;": "\u2736",
|
| 1755 |
+
"Sfr;": "\uD835\uDD16",
|
| 1756 |
+
"sfr;": "\uD835\uDD30",
|
| 1757 |
+
"sfrown;": "\u2322",
|
| 1758 |
+
"sharp;": "\u266F",
|
| 1759 |
+
"SHCHcy;": "\u0429",
|
| 1760 |
+
"shchcy;": "\u0449",
|
| 1761 |
+
"SHcy;": "\u0428",
|
| 1762 |
+
"shcy;": "\u0448",
|
| 1763 |
+
"ShortDownArrow;": "\u2193",
|
| 1764 |
+
"ShortLeftArrow;": "\u2190",
|
| 1765 |
+
"shortmid;": "\u2223",
|
| 1766 |
+
"shortparallel;": "\u2225",
|
| 1767 |
+
"ShortRightArrow;": "\u2192",
|
| 1768 |
+
"ShortUpArrow;": "\u2191",
|
| 1769 |
+
"shy;": "\u00AD",
|
| 1770 |
+
"shy": "\u00AD",
|
| 1771 |
+
"Sigma;": "\u03A3",
|
| 1772 |
+
"sigma;": "\u03C3",
|
| 1773 |
+
"sigmaf;": "\u03C2",
|
| 1774 |
+
"sigmav;": "\u03C2",
|
| 1775 |
+
"sim;": "\u223C",
|
| 1776 |
+
"simdot;": "\u2A6A",
|
| 1777 |
+
"sime;": "\u2243",
|
| 1778 |
+
"simeq;": "\u2243",
|
| 1779 |
+
"simg;": "\u2A9E",
|
| 1780 |
+
"simgE;": "\u2AA0",
|
| 1781 |
+
"siml;": "\u2A9D",
|
| 1782 |
+
"simlE;": "\u2A9F",
|
| 1783 |
+
"simne;": "\u2246",
|
| 1784 |
+
"simplus;": "\u2A24",
|
| 1785 |
+
"simrarr;": "\u2972",
|
| 1786 |
+
"slarr;": "\u2190",
|
| 1787 |
+
"SmallCircle;": "\u2218",
|
| 1788 |
+
"smallsetminus;": "\u2216",
|
| 1789 |
+
"smashp;": "\u2A33",
|
| 1790 |
+
"smeparsl;": "\u29E4",
|
| 1791 |
+
"smid;": "\u2223",
|
| 1792 |
+
"smile;": "\u2323",
|
| 1793 |
+
"smt;": "\u2AAA",
|
| 1794 |
+
"smte;": "\u2AAC",
|
| 1795 |
+
"smtes;": "\u2AAC\uFE00",
|
| 1796 |
+
"SOFTcy;": "\u042C",
|
| 1797 |
+
"softcy;": "\u044C",
|
| 1798 |
+
"sol;": "\u002F",
|
| 1799 |
+
"solb;": "\u29C4",
|
| 1800 |
+
"solbar;": "\u233F",
|
| 1801 |
+
"Sopf;": "\uD835\uDD4A",
|
| 1802 |
+
"sopf;": "\uD835\uDD64",
|
| 1803 |
+
"spades;": "\u2660",
|
| 1804 |
+
"spadesuit;": "\u2660",
|
| 1805 |
+
"spar;": "\u2225",
|
| 1806 |
+
"sqcap;": "\u2293",
|
| 1807 |
+
"sqcaps;": "\u2293\uFE00",
|
| 1808 |
+
"sqcup;": "\u2294",
|
| 1809 |
+
"sqcups;": "\u2294\uFE00",
|
| 1810 |
+
"Sqrt;": "\u221A",
|
| 1811 |
+
"sqsub;": "\u228F",
|
| 1812 |
+
"sqsube;": "\u2291",
|
| 1813 |
+
"sqsubset;": "\u228F",
|
| 1814 |
+
"sqsubseteq;": "\u2291",
|
| 1815 |
+
"sqsup;": "\u2290",
|
| 1816 |
+
"sqsupe;": "\u2292",
|
| 1817 |
+
"sqsupset;": "\u2290",
|
| 1818 |
+
"sqsupseteq;": "\u2292",
|
| 1819 |
+
"squ;": "\u25A1",
|
| 1820 |
+
"Square;": "\u25A1",
|
| 1821 |
+
"square;": "\u25A1",
|
| 1822 |
+
"SquareIntersection;": "\u2293",
|
| 1823 |
+
"SquareSubset;": "\u228F",
|
| 1824 |
+
"SquareSubsetEqual;": "\u2291",
|
| 1825 |
+
"SquareSuperset;": "\u2290",
|
| 1826 |
+
"SquareSupersetEqual;": "\u2292",
|
| 1827 |
+
"SquareUnion;": "\u2294",
|
| 1828 |
+
"squarf;": "\u25AA",
|
| 1829 |
+
"squf;": "\u25AA",
|
| 1830 |
+
"srarr;": "\u2192",
|
| 1831 |
+
"Sscr;": "\uD835\uDCAE",
|
| 1832 |
+
"sscr;": "\uD835\uDCC8",
|
| 1833 |
+
"ssetmn;": "\u2216",
|
| 1834 |
+
"ssmile;": "\u2323",
|
| 1835 |
+
"sstarf;": "\u22C6",
|
| 1836 |
+
"Star;": "\u22C6",
|
| 1837 |
+
"star;": "\u2606",
|
| 1838 |
+
"starf;": "\u2605",
|
| 1839 |
+
"straightepsilon;": "\u03F5",
|
| 1840 |
+
"straightphi;": "\u03D5",
|
| 1841 |
+
"strns;": "\u00AF",
|
| 1842 |
+
"Sub;": "\u22D0",
|
| 1843 |
+
"sub;": "\u2282",
|
| 1844 |
+
"subdot;": "\u2ABD",
|
| 1845 |
+
"subE;": "\u2AC5",
|
| 1846 |
+
"sube;": "\u2286",
|
| 1847 |
+
"subedot;": "\u2AC3",
|
| 1848 |
+
"submult;": "\u2AC1",
|
| 1849 |
+
"subnE;": "\u2ACB",
|
| 1850 |
+
"subne;": "\u228A",
|
| 1851 |
+
"subplus;": "\u2ABF",
|
| 1852 |
+
"subrarr;": "\u2979",
|
| 1853 |
+
"Subset;": "\u22D0",
|
| 1854 |
+
"subset;": "\u2282",
|
| 1855 |
+
"subseteq;": "\u2286",
|
| 1856 |
+
"subseteqq;": "\u2AC5",
|
| 1857 |
+
"SubsetEqual;": "\u2286",
|
| 1858 |
+
"subsetneq;": "\u228A",
|
| 1859 |
+
"subsetneqq;": "\u2ACB",
|
| 1860 |
+
"subsim;": "\u2AC7",
|
| 1861 |
+
"subsub;": "\u2AD5",
|
| 1862 |
+
"subsup;": "\u2AD3",
|
| 1863 |
+
"succ;": "\u227B",
|
| 1864 |
+
"succapprox;": "\u2AB8",
|
| 1865 |
+
"succcurlyeq;": "\u227D",
|
| 1866 |
+
"Succeeds;": "\u227B",
|
| 1867 |
+
"SucceedsEqual;": "\u2AB0",
|
| 1868 |
+
"SucceedsSlantEqual;": "\u227D",
|
| 1869 |
+
"SucceedsTilde;": "\u227F",
|
| 1870 |
+
"succeq;": "\u2AB0",
|
| 1871 |
+
"succnapprox;": "\u2ABA",
|
| 1872 |
+
"succneqq;": "\u2AB6",
|
| 1873 |
+
"succnsim;": "\u22E9",
|
| 1874 |
+
"succsim;": "\u227F",
|
| 1875 |
+
"SuchThat;": "\u220B",
|
| 1876 |
+
"Sum;": "\u2211",
|
| 1877 |
+
"sum;": "\u2211",
|
| 1878 |
+
"sung;": "\u266A",
|
| 1879 |
+
"Sup;": "\u22D1",
|
| 1880 |
+
"sup;": "\u2283",
|
| 1881 |
+
"sup1;": "\u00B9",
|
| 1882 |
+
"sup1": "\u00B9",
|
| 1883 |
+
"sup2;": "\u00B2",
|
| 1884 |
+
"sup2": "\u00B2",
|
| 1885 |
+
"sup3;": "\u00B3",
|
| 1886 |
+
"sup3": "\u00B3",
|
| 1887 |
+
"supdot;": "\u2ABE",
|
| 1888 |
+
"supdsub;": "\u2AD8",
|
| 1889 |
+
"supE;": "\u2AC6",
|
| 1890 |
+
"supe;": "\u2287",
|
| 1891 |
+
"supedot;": "\u2AC4",
|
| 1892 |
+
"Superset;": "\u2283",
|
| 1893 |
+
"SupersetEqual;": "\u2287",
|
| 1894 |
+
"suphsol;": "\u27C9",
|
| 1895 |
+
"suphsub;": "\u2AD7",
|
| 1896 |
+
"suplarr;": "\u297B",
|
| 1897 |
+
"supmult;": "\u2AC2",
|
| 1898 |
+
"supnE;": "\u2ACC",
|
| 1899 |
+
"supne;": "\u228B",
|
| 1900 |
+
"supplus;": "\u2AC0",
|
| 1901 |
+
"Supset;": "\u22D1",
|
| 1902 |
+
"supset;": "\u2283",
|
| 1903 |
+
"supseteq;": "\u2287",
|
| 1904 |
+
"supseteqq;": "\u2AC6",
|
| 1905 |
+
"supsetneq;": "\u228B",
|
| 1906 |
+
"supsetneqq;": "\u2ACC",
|
| 1907 |
+
"supsim;": "\u2AC8",
|
| 1908 |
+
"supsub;": "\u2AD4",
|
| 1909 |
+
"supsup;": "\u2AD6",
|
| 1910 |
+
"swarhk;": "\u2926",
|
| 1911 |
+
"swArr;": "\u21D9",
|
| 1912 |
+
"swarr;": "\u2199",
|
| 1913 |
+
"swarrow;": "\u2199",
|
| 1914 |
+
"swnwar;": "\u292A",
|
| 1915 |
+
"szlig;": "\u00DF",
|
| 1916 |
+
"szlig": "\u00DF",
|
| 1917 |
+
"Tab;": "\u0009",
|
| 1918 |
+
"target;": "\u2316",
|
| 1919 |
+
"Tau;": "\u03A4",
|
| 1920 |
+
"tau;": "\u03C4",
|
| 1921 |
+
"tbrk;": "\u23B4",
|
| 1922 |
+
"Tcaron;": "\u0164",
|
| 1923 |
+
"tcaron;": "\u0165",
|
| 1924 |
+
"Tcedil;": "\u0162",
|
| 1925 |
+
"tcedil;": "\u0163",
|
| 1926 |
+
"Tcy;": "\u0422",
|
| 1927 |
+
"tcy;": "\u0442",
|
| 1928 |
+
"tdot;": "\u20DB",
|
| 1929 |
+
"telrec;": "\u2315",
|
| 1930 |
+
"Tfr;": "\uD835\uDD17",
|
| 1931 |
+
"tfr;": "\uD835\uDD31",
|
| 1932 |
+
"there4;": "\u2234",
|
| 1933 |
+
"Therefore;": "\u2234",
|
| 1934 |
+
"therefore;": "\u2234",
|
| 1935 |
+
"Theta;": "\u0398",
|
| 1936 |
+
"theta;": "\u03B8",
|
| 1937 |
+
"thetasym;": "\u03D1",
|
| 1938 |
+
"thetav;": "\u03D1",
|
| 1939 |
+
"thickapprox;": "\u2248",
|
| 1940 |
+
"thicksim;": "\u223C",
|
| 1941 |
+
"ThickSpace;": "\u205F\u200A",
|
| 1942 |
+
"thinsp;": "\u2009",
|
| 1943 |
+
"ThinSpace;": "\u2009",
|
| 1944 |
+
"thkap;": "\u2248",
|
| 1945 |
+
"thksim;": "\u223C",
|
| 1946 |
+
"THORN;": "\u00DE",
|
| 1947 |
+
"THORN": "\u00DE",
|
| 1948 |
+
"thorn;": "\u00FE",
|
| 1949 |
+
"thorn": "\u00FE",
|
| 1950 |
+
"Tilde;": "\u223C",
|
| 1951 |
+
"tilde;": "\u02DC",
|
| 1952 |
+
"TildeEqual;": "\u2243",
|
| 1953 |
+
"TildeFullEqual;": "\u2245",
|
| 1954 |
+
"TildeTilde;": "\u2248",
|
| 1955 |
+
"times;": "\u00D7",
|
| 1956 |
+
"times": "\u00D7",
|
| 1957 |
+
"timesb;": "\u22A0",
|
| 1958 |
+
"timesbar;": "\u2A31",
|
| 1959 |
+
"timesd;": "\u2A30",
|
| 1960 |
+
"tint;": "\u222D",
|
| 1961 |
+
"toea;": "\u2928",
|
| 1962 |
+
"top;": "\u22A4",
|
| 1963 |
+
"topbot;": "\u2336",
|
| 1964 |
+
"topcir;": "\u2AF1",
|
| 1965 |
+
"Topf;": "\uD835\uDD4B",
|
| 1966 |
+
"topf;": "\uD835\uDD65",
|
| 1967 |
+
"topfork;": "\u2ADA",
|
| 1968 |
+
"tosa;": "\u2929",
|
| 1969 |
+
"tprime;": "\u2034",
|
| 1970 |
+
"TRADE;": "\u2122",
|
| 1971 |
+
"trade;": "\u2122",
|
| 1972 |
+
"triangle;": "\u25B5",
|
| 1973 |
+
"triangledown;": "\u25BF",
|
| 1974 |
+
"triangleleft;": "\u25C3",
|
| 1975 |
+
"trianglelefteq;": "\u22B4",
|
| 1976 |
+
"triangleq;": "\u225C",
|
| 1977 |
+
"triangleright;": "\u25B9",
|
| 1978 |
+
"trianglerighteq;": "\u22B5",
|
| 1979 |
+
"tridot;": "\u25EC",
|
| 1980 |
+
"trie;": "\u225C",
|
| 1981 |
+
"triminus;": "\u2A3A",
|
| 1982 |
+
"TripleDot;": "\u20DB",
|
| 1983 |
+
"triplus;": "\u2A39",
|
| 1984 |
+
"trisb;": "\u29CD",
|
| 1985 |
+
"tritime;": "\u2A3B",
|
| 1986 |
+
"trpezium;": "\u23E2",
|
| 1987 |
+
"Tscr;": "\uD835\uDCAF",
|
| 1988 |
+
"tscr;": "\uD835\uDCC9",
|
| 1989 |
+
"TScy;": "\u0426",
|
| 1990 |
+
"tscy;": "\u0446",
|
| 1991 |
+
"TSHcy;": "\u040B",
|
| 1992 |
+
"tshcy;": "\u045B",
|
| 1993 |
+
"Tstrok;": "\u0166",
|
| 1994 |
+
"tstrok;": "\u0167",
|
| 1995 |
+
"twixt;": "\u226C",
|
| 1996 |
+
"twoheadleftarrow;": "\u219E",
|
| 1997 |
+
"twoheadrightarrow;": "\u21A0",
|
| 1998 |
+
"Uacute;": "\u00DA",
|
| 1999 |
+
"Uacute": "\u00DA",
|
| 2000 |
+
"uacute;": "\u00FA",
|
| 2001 |
+
"uacute": "\u00FA",
|
| 2002 |
+
"Uarr;": "\u219F",
|
| 2003 |
+
"uArr;": "\u21D1",
|
| 2004 |
+
"uarr;": "\u2191",
|
| 2005 |
+
"Uarrocir;": "\u2949",
|
| 2006 |
+
"Ubrcy;": "\u040E",
|
| 2007 |
+
"ubrcy;": "\u045E",
|
| 2008 |
+
"Ubreve;": "\u016C",
|
| 2009 |
+
"ubreve;": "\u016D",
|
| 2010 |
+
"Ucirc;": "\u00DB",
|
| 2011 |
+
"Ucirc": "\u00DB",
|
| 2012 |
+
"ucirc;": "\u00FB",
|
| 2013 |
+
"ucirc": "\u00FB",
|
| 2014 |
+
"Ucy;": "\u0423",
|
| 2015 |
+
"ucy;": "\u0443",
|
| 2016 |
+
"udarr;": "\u21C5",
|
| 2017 |
+
"Udblac;": "\u0170",
|
| 2018 |
+
"udblac;": "\u0171",
|
| 2019 |
+
"udhar;": "\u296E",
|
| 2020 |
+
"ufisht;": "\u297E",
|
| 2021 |
+
"Ufr;": "\uD835\uDD18",
|
| 2022 |
+
"ufr;": "\uD835\uDD32",
|
| 2023 |
+
"Ugrave;": "\u00D9",
|
| 2024 |
+
"Ugrave": "\u00D9",
|
| 2025 |
+
"ugrave;": "\u00F9",
|
| 2026 |
+
"ugrave": "\u00F9",
|
| 2027 |
+
"uHar;": "\u2963",
|
| 2028 |
+
"uharl;": "\u21BF",
|
| 2029 |
+
"uharr;": "\u21BE",
|
| 2030 |
+
"uhblk;": "\u2580",
|
| 2031 |
+
"ulcorn;": "\u231C",
|
| 2032 |
+
"ulcorner;": "\u231C",
|
| 2033 |
+
"ulcrop;": "\u230F",
|
| 2034 |
+
"ultri;": "\u25F8",
|
| 2035 |
+
"Umacr;": "\u016A",
|
| 2036 |
+
"umacr;": "\u016B",
|
| 2037 |
+
"uml;": "\u00A8",
|
| 2038 |
+
"uml": "\u00A8",
|
| 2039 |
+
"UnderBar;": "\u005F",
|
| 2040 |
+
"UnderBrace;": "\u23DF",
|
| 2041 |
+
"UnderBracket;": "\u23B5",
|
| 2042 |
+
"UnderParenthesis;": "\u23DD",
|
| 2043 |
+
"Union;": "\u22C3",
|
| 2044 |
+
"UnionPlus;": "\u228E",
|
| 2045 |
+
"Uogon;": "\u0172",
|
| 2046 |
+
"uogon;": "\u0173",
|
| 2047 |
+
"Uopf;": "\uD835\uDD4C",
|
| 2048 |
+
"uopf;": "\uD835\uDD66",
|
| 2049 |
+
"UpArrow;": "\u2191",
|
| 2050 |
+
"Uparrow;": "\u21D1",
|
| 2051 |
+
"uparrow;": "\u2191",
|
| 2052 |
+
"UpArrowBar;": "\u2912",
|
| 2053 |
+
"UpArrowDownArrow;": "\u21C5",
|
| 2054 |
+
"UpDownArrow;": "\u2195",
|
| 2055 |
+
"Updownarrow;": "\u21D5",
|
| 2056 |
+
"updownarrow;": "\u2195",
|
| 2057 |
+
"UpEquilibrium;": "\u296E",
|
| 2058 |
+
"upharpoonleft;": "\u21BF",
|
| 2059 |
+
"upharpoonright;": "\u21BE",
|
| 2060 |
+
"uplus;": "\u228E",
|
| 2061 |
+
"UpperLeftArrow;": "\u2196",
|
| 2062 |
+
"UpperRightArrow;": "\u2197",
|
| 2063 |
+
"Upsi;": "\u03D2",
|
| 2064 |
+
"upsi;": "\u03C5",
|
| 2065 |
+
"upsih;": "\u03D2",
|
| 2066 |
+
"Upsilon;": "\u03A5",
|
| 2067 |
+
"upsilon;": "\u03C5",
|
| 2068 |
+
"UpTee;": "\u22A5",
|
| 2069 |
+
"UpTeeArrow;": "\u21A5",
|
| 2070 |
+
"upuparrows;": "\u21C8",
|
| 2071 |
+
"urcorn;": "\u231D",
|
| 2072 |
+
"urcorner;": "\u231D",
|
| 2073 |
+
"urcrop;": "\u230E",
|
| 2074 |
+
"Uring;": "\u016E",
|
| 2075 |
+
"uring;": "\u016F",
|
| 2076 |
+
"urtri;": "\u25F9",
|
| 2077 |
+
"Uscr;": "\uD835\uDCB0",
|
| 2078 |
+
"uscr;": "\uD835\uDCCA",
|
| 2079 |
+
"utdot;": "\u22F0",
|
| 2080 |
+
"Utilde;": "\u0168",
|
| 2081 |
+
"utilde;": "\u0169",
|
| 2082 |
+
"utri;": "\u25B5",
|
| 2083 |
+
"utrif;": "\u25B4",
|
| 2084 |
+
"uuarr;": "\u21C8",
|
| 2085 |
+
"Uuml;": "\u00DC",
|
| 2086 |
+
"Uuml": "\u00DC",
|
| 2087 |
+
"uuml;": "\u00FC",
|
| 2088 |
+
"uuml": "\u00FC",
|
| 2089 |
+
"uwangle;": "\u29A7",
|
| 2090 |
+
"vangrt;": "\u299C",
|
| 2091 |
+
"varepsilon;": "\u03F5",
|
| 2092 |
+
"varkappa;": "\u03F0",
|
| 2093 |
+
"varnothing;": "\u2205",
|
| 2094 |
+
"varphi;": "\u03D5",
|
| 2095 |
+
"varpi;": "\u03D6",
|
| 2096 |
+
"varpropto;": "\u221D",
|
| 2097 |
+
"vArr;": "\u21D5",
|
| 2098 |
+
"varr;": "\u2195",
|
| 2099 |
+
"varrho;": "\u03F1",
|
| 2100 |
+
"varsigma;": "\u03C2",
|
| 2101 |
+
"varsubsetneq;": "\u228A\uFE00",
|
| 2102 |
+
"varsubsetneqq;": "\u2ACB\uFE00",
|
| 2103 |
+
"varsupsetneq;": "\u228B\uFE00",
|
| 2104 |
+
"varsupsetneqq;": "\u2ACC\uFE00",
|
| 2105 |
+
"vartheta;": "\u03D1",
|
| 2106 |
+
"vartriangleleft;": "\u22B2",
|
| 2107 |
+
"vartriangleright;": "\u22B3",
|
| 2108 |
+
"Vbar;": "\u2AEB",
|
| 2109 |
+
"vBar;": "\u2AE8",
|
| 2110 |
+
"vBarv;": "\u2AE9",
|
| 2111 |
+
"Vcy;": "\u0412",
|
| 2112 |
+
"vcy;": "\u0432",
|
| 2113 |
+
"VDash;": "\u22AB",
|
| 2114 |
+
"Vdash;": "\u22A9",
|
| 2115 |
+
"vDash;": "\u22A8",
|
| 2116 |
+
"vdash;": "\u22A2",
|
| 2117 |
+
"Vdashl;": "\u2AE6",
|
| 2118 |
+
"Vee;": "\u22C1",
|
| 2119 |
+
"vee;": "\u2228",
|
| 2120 |
+
"veebar;": "\u22BB",
|
| 2121 |
+
"veeeq;": "\u225A",
|
| 2122 |
+
"vellip;": "\u22EE",
|
| 2123 |
+
"Verbar;": "\u2016",
|
| 2124 |
+
"verbar;": "\u007C",
|
| 2125 |
+
"Vert;": "\u2016",
|
| 2126 |
+
"vert;": "\u007C",
|
| 2127 |
+
"VerticalBar;": "\u2223",
|
| 2128 |
+
"VerticalLine;": "\u007C",
|
| 2129 |
+
"VerticalSeparator;": "\u2758",
|
| 2130 |
+
"VerticalTilde;": "\u2240",
|
| 2131 |
+
"VeryThinSpace;": "\u200A",
|
| 2132 |
+
"Vfr;": "\uD835\uDD19",
|
| 2133 |
+
"vfr;": "\uD835\uDD33",
|
| 2134 |
+
"vltri;": "\u22B2",
|
| 2135 |
+
"vnsub;": "\u2282\u20D2",
|
| 2136 |
+
"vnsup;": "\u2283\u20D2",
|
| 2137 |
+
"Vopf;": "\uD835\uDD4D",
|
| 2138 |
+
"vopf;": "\uD835\uDD67",
|
| 2139 |
+
"vprop;": "\u221D",
|
| 2140 |
+
"vrtri;": "\u22B3",
|
| 2141 |
+
"Vscr;": "\uD835\uDCB1",
|
| 2142 |
+
"vscr;": "\uD835\uDCCB",
|
| 2143 |
+
"vsubnE;": "\u2ACB\uFE00",
|
| 2144 |
+
"vsubne;": "\u228A\uFE00",
|
| 2145 |
+
"vsupnE;": "\u2ACC\uFE00",
|
| 2146 |
+
"vsupne;": "\u228B\uFE00",
|
| 2147 |
+
"Vvdash;": "\u22AA",
|
| 2148 |
+
"vzigzag;": "\u299A",
|
| 2149 |
+
"Wcirc;": "\u0174",
|
| 2150 |
+
"wcirc;": "\u0175",
|
| 2151 |
+
"wedbar;": "\u2A5F",
|
| 2152 |
+
"Wedge;": "\u22C0",
|
| 2153 |
+
"wedge;": "\u2227",
|
| 2154 |
+
"wedgeq;": "\u2259",
|
| 2155 |
+
"weierp;": "\u2118",
|
| 2156 |
+
"Wfr;": "\uD835\uDD1A",
|
| 2157 |
+
"wfr;": "\uD835\uDD34",
|
| 2158 |
+
"Wopf;": "\uD835\uDD4E",
|
| 2159 |
+
"wopf;": "\uD835\uDD68",
|
| 2160 |
+
"wp;": "\u2118",
|
| 2161 |
+
"wr;": "\u2240",
|
| 2162 |
+
"wreath;": "\u2240",
|
| 2163 |
+
"Wscr;": "\uD835\uDCB2",
|
| 2164 |
+
"wscr;": "\uD835\uDCCC",
|
| 2165 |
+
"xcap;": "\u22C2",
|
| 2166 |
+
"xcirc;": "\u25EF",
|
| 2167 |
+
"xcup;": "\u22C3",
|
| 2168 |
+
"xdtri;": "\u25BD",
|
| 2169 |
+
"Xfr;": "\uD835\uDD1B",
|
| 2170 |
+
"xfr;": "\uD835\uDD35",
|
| 2171 |
+
"xhArr;": "\u27FA",
|
| 2172 |
+
"xharr;": "\u27F7",
|
| 2173 |
+
"Xi;": "\u039E",
|
| 2174 |
+
"xi;": "\u03BE",
|
| 2175 |
+
"xlArr;": "\u27F8",
|
| 2176 |
+
"xlarr;": "\u27F5",
|
| 2177 |
+
"xmap;": "\u27FC",
|
| 2178 |
+
"xnis;": "\u22FB",
|
| 2179 |
+
"xodot;": "\u2A00",
|
| 2180 |
+
"Xopf;": "\uD835\uDD4F",
|
| 2181 |
+
"xopf;": "\uD835\uDD69",
|
| 2182 |
+
"xoplus;": "\u2A01",
|
| 2183 |
+
"xotime;": "\u2A02",
|
| 2184 |
+
"xrArr;": "\u27F9",
|
| 2185 |
+
"xrarr;": "\u27F6",
|
| 2186 |
+
"Xscr;": "\uD835\uDCB3",
|
| 2187 |
+
"xscr;": "\uD835\uDCCD",
|
| 2188 |
+
"xsqcup;": "\u2A06",
|
| 2189 |
+
"xuplus;": "\u2A04",
|
| 2190 |
+
"xutri;": "\u25B3",
|
| 2191 |
+
"xvee;": "\u22C1",
|
| 2192 |
+
"xwedge;": "\u22C0",
|
| 2193 |
+
"Yacute;": "\u00DD",
|
| 2194 |
+
"Yacute": "\u00DD",
|
| 2195 |
+
"yacute;": "\u00FD",
|
| 2196 |
+
"yacute": "\u00FD",
|
| 2197 |
+
"YAcy;": "\u042F",
|
| 2198 |
+
"yacy;": "\u044F",
|
| 2199 |
+
"Ycirc;": "\u0176",
|
| 2200 |
+
"ycirc;": "\u0177",
|
| 2201 |
+
"Ycy;": "\u042B",
|
| 2202 |
+
"ycy;": "\u044B",
|
| 2203 |
+
"yen;": "\u00A5",
|
| 2204 |
+
"yen": "\u00A5",
|
| 2205 |
+
"Yfr;": "\uD835\uDD1C",
|
| 2206 |
+
"yfr;": "\uD835\uDD36",
|
| 2207 |
+
"YIcy;": "\u0407",
|
| 2208 |
+
"yicy;": "\u0457",
|
| 2209 |
+
"Yopf;": "\uD835\uDD50",
|
| 2210 |
+
"yopf;": "\uD835\uDD6A",
|
| 2211 |
+
"Yscr;": "\uD835\uDCB4",
|
| 2212 |
+
"yscr;": "\uD835\uDCCE",
|
| 2213 |
+
"YUcy;": "\u042E",
|
| 2214 |
+
"yucy;": "\u044E",
|
| 2215 |
+
"Yuml;": "\u0178",
|
| 2216 |
+
"yuml;": "\u00FF",
|
| 2217 |
+
"yuml": "\u00FF",
|
| 2218 |
+
"Zacute;": "\u0179",
|
| 2219 |
+
"zacute;": "\u017A",
|
| 2220 |
+
"Zcaron;": "\u017D",
|
| 2221 |
+
"zcaron;": "\u017E",
|
| 2222 |
+
"Zcy;": "\u0417",
|
| 2223 |
+
"zcy;": "\u0437",
|
| 2224 |
+
"Zdot;": "\u017B",
|
| 2225 |
+
"zdot;": "\u017C",
|
| 2226 |
+
"zeetrf;": "\u2128",
|
| 2227 |
+
"ZeroWidthSpace;": "\u200B",
|
| 2228 |
+
"Zeta;": "\u0396",
|
| 2229 |
+
"zeta;": "\u03B6",
|
| 2230 |
+
"Zfr;": "\u2128",
|
| 2231 |
+
"zfr;": "\uD835\uDD37",
|
| 2232 |
+
"ZHcy;": "\u0416",
|
| 2233 |
+
"zhcy;": "\u0436",
|
| 2234 |
+
"zigrarr;": "\u21DD",
|
| 2235 |
+
"Zopf;": "\u2124",
|
| 2236 |
+
"zopf;": "\uD835\uDD6B",
|
| 2237 |
+
"Zscr;": "\uD835\uDCB5",
|
| 2238 |
+
"zscr;": "\uD835\uDCCF",
|
| 2239 |
+
"zwj;": "\u200D",
|
| 2240 |
+
"zwnj;": "\u200C"
|
| 2241 |
+
};
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/parser/htmlParser.js
CHANGED
|
@@ -1,3 +1,161 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
import { createScanner } from './htmlScanner';
|
| 6 |
+
import { findFirst } from '../utils/arrays';
|
| 7 |
+
import { TokenType } from '../htmlLanguageTypes';
|
| 8 |
+
export class Node {
|
| 9 |
+
get attributeNames() { return this.attributes ? Object.keys(this.attributes) : []; }
|
| 10 |
+
constructor(start, end, children, parent) {
|
| 11 |
+
this.start = start;
|
| 12 |
+
this.end = end;
|
| 13 |
+
this.children = children;
|
| 14 |
+
this.parent = parent;
|
| 15 |
+
this.closed = false;
|
| 16 |
+
}
|
| 17 |
+
isSameTag(tagInLowerCase) {
|
| 18 |
+
if (this.tag === undefined) {
|
| 19 |
+
return tagInLowerCase === undefined;
|
| 20 |
+
}
|
| 21 |
+
else {
|
| 22 |
+
return tagInLowerCase !== undefined && this.tag.length === tagInLowerCase.length && this.tag.toLowerCase() === tagInLowerCase;
|
| 23 |
+
}
|
| 24 |
+
}
|
| 25 |
+
get firstChild() { return this.children[0]; }
|
| 26 |
+
get lastChild() { return this.children.length ? this.children[this.children.length - 1] : void 0; }
|
| 27 |
+
findNodeBefore(offset) {
|
| 28 |
+
const idx = findFirst(this.children, c => offset <= c.start) - 1;
|
| 29 |
+
if (idx >= 0) {
|
| 30 |
+
const child = this.children[idx];
|
| 31 |
+
if (offset > child.start) {
|
| 32 |
+
if (offset < child.end) {
|
| 33 |
+
return child.findNodeBefore(offset);
|
| 34 |
+
}
|
| 35 |
+
const lastChild = child.lastChild;
|
| 36 |
+
if (lastChild && lastChild.end === child.end) {
|
| 37 |
+
return child.findNodeBefore(offset);
|
| 38 |
+
}
|
| 39 |
+
return child;
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
return this;
|
| 43 |
+
}
|
| 44 |
+
findNodeAt(offset) {
|
| 45 |
+
const idx = findFirst(this.children, c => offset <= c.start) - 1;
|
| 46 |
+
if (idx >= 0) {
|
| 47 |
+
const child = this.children[idx];
|
| 48 |
+
if (offset > child.start && offset <= child.end) {
|
| 49 |
+
return child.findNodeAt(offset);
|
| 50 |
+
}
|
| 51 |
+
}
|
| 52 |
+
return this;
|
| 53 |
+
}
|
| 54 |
+
}
|
| 55 |
+
export class HTMLParser {
|
| 56 |
+
constructor(dataManager) {
|
| 57 |
+
this.dataManager = dataManager;
|
| 58 |
+
}
|
| 59 |
+
parseDocument(document) {
|
| 60 |
+
return this.parse(document.getText(), this.dataManager.getVoidElements(document.languageId));
|
| 61 |
+
}
|
| 62 |
+
parse(text, voidElements) {
|
| 63 |
+
const scanner = createScanner(text, undefined, undefined, true);
|
| 64 |
+
const htmlDocument = new Node(0, text.length, [], void 0);
|
| 65 |
+
let curr = htmlDocument;
|
| 66 |
+
let endTagStart = -1;
|
| 67 |
+
let endTagName = undefined;
|
| 68 |
+
let pendingAttribute = null;
|
| 69 |
+
let token = scanner.scan();
|
| 70 |
+
while (token !== TokenType.EOS) {
|
| 71 |
+
switch (token) {
|
| 72 |
+
case TokenType.StartTagOpen:
|
| 73 |
+
const child = new Node(scanner.getTokenOffset(), text.length, [], curr);
|
| 74 |
+
curr.children.push(child);
|
| 75 |
+
curr = child;
|
| 76 |
+
break;
|
| 77 |
+
case TokenType.StartTag:
|
| 78 |
+
curr.tag = scanner.getTokenText();
|
| 79 |
+
break;
|
| 80 |
+
case TokenType.StartTagClose:
|
| 81 |
+
if (curr.parent) {
|
| 82 |
+
curr.end = scanner.getTokenEnd(); // might be later set to end tag position
|
| 83 |
+
if (scanner.getTokenLength()) {
|
| 84 |
+
curr.startTagEnd = scanner.getTokenEnd();
|
| 85 |
+
if (curr.tag && this.dataManager.isVoidElement(curr.tag, voidElements)) {
|
| 86 |
+
curr.closed = true;
|
| 87 |
+
curr = curr.parent;
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
else {
|
| 91 |
+
// pseudo close token from an incomplete start tag
|
| 92 |
+
curr = curr.parent;
|
| 93 |
+
}
|
| 94 |
+
}
|
| 95 |
+
break;
|
| 96 |
+
case TokenType.StartTagSelfClose:
|
| 97 |
+
if (curr.parent) {
|
| 98 |
+
curr.closed = true;
|
| 99 |
+
curr.end = scanner.getTokenEnd();
|
| 100 |
+
curr.startTagEnd = scanner.getTokenEnd();
|
| 101 |
+
curr = curr.parent;
|
| 102 |
+
}
|
| 103 |
+
break;
|
| 104 |
+
case TokenType.EndTagOpen:
|
| 105 |
+
endTagStart = scanner.getTokenOffset();
|
| 106 |
+
endTagName = undefined;
|
| 107 |
+
break;
|
| 108 |
+
case TokenType.EndTag:
|
| 109 |
+
endTagName = scanner.getTokenText().toLowerCase();
|
| 110 |
+
break;
|
| 111 |
+
case TokenType.EndTagClose:
|
| 112 |
+
let node = curr;
|
| 113 |
+
// see if we can find a matching tag
|
| 114 |
+
while (!node.isSameTag(endTagName) && node.parent) {
|
| 115 |
+
node = node.parent;
|
| 116 |
+
}
|
| 117 |
+
if (node.parent) {
|
| 118 |
+
while (curr !== node) {
|
| 119 |
+
curr.end = endTagStart;
|
| 120 |
+
curr.closed = false;
|
| 121 |
+
curr = curr.parent;
|
| 122 |
+
}
|
| 123 |
+
curr.closed = true;
|
| 124 |
+
curr.endTagStart = endTagStart;
|
| 125 |
+
curr.end = scanner.getTokenEnd();
|
| 126 |
+
curr = curr.parent;
|
| 127 |
+
}
|
| 128 |
+
break;
|
| 129 |
+
case TokenType.AttributeName: {
|
| 130 |
+
pendingAttribute = scanner.getTokenText();
|
| 131 |
+
let attributes = curr.attributes;
|
| 132 |
+
if (!attributes) {
|
| 133 |
+
curr.attributes = attributes = {};
|
| 134 |
+
}
|
| 135 |
+
attributes[pendingAttribute] = null; // Support valueless attributes such as 'checked'
|
| 136 |
+
break;
|
| 137 |
+
}
|
| 138 |
+
case TokenType.AttributeValue: {
|
| 139 |
+
const value = scanner.getTokenText();
|
| 140 |
+
const attributes = curr.attributes;
|
| 141 |
+
if (attributes && pendingAttribute) {
|
| 142 |
+
attributes[pendingAttribute] = value;
|
| 143 |
+
pendingAttribute = null;
|
| 144 |
+
}
|
| 145 |
+
break;
|
| 146 |
+
}
|
| 147 |
+
}
|
| 148 |
+
token = scanner.scan();
|
| 149 |
+
}
|
| 150 |
+
while (curr.parent) {
|
| 151 |
+
curr.end = text.length;
|
| 152 |
+
curr.closed = false;
|
| 153 |
+
curr = curr.parent;
|
| 154 |
+
}
|
| 155 |
+
return {
|
| 156 |
+
roots: htmlDocument.children,
|
| 157 |
+
findNodeBefore: htmlDocument.findNodeBefore.bind(htmlDocument),
|
| 158 |
+
findNodeAt: htmlDocument.findNodeAt.bind(htmlDocument)
|
| 159 |
+
};
|
| 160 |
+
}
|
| 161 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/parser/htmlScanner.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
size 209
|
|
|
|
| 1 |
+
import { ScannerState, Scanner } from '../htmlLanguageTypes';
|
| 2 |
+
export declare function createScanner(input: string, initialOffset?: number, initialState?: ScannerState, emitPseudoCloseTags?: boolean): Scanner;
|
|
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
import * as l10n from '@vscode/l10n';
|
| 6 |
+
import { TokenType, ScannerState } from '../htmlLanguageTypes';
|
| 7 |
+
class MultiLineStream {
|
| 8 |
+
constructor(source, position) {
|
| 9 |
+
this.source = source;
|
| 10 |
+
this.len = source.length;
|
| 11 |
+
this.position = position;
|
| 12 |
+
}
|
| 13 |
+
eos() {
|
| 14 |
+
return this.len <= this.position;
|
| 15 |
+
}
|
| 16 |
+
getSource() {
|
| 17 |
+
return this.source;
|
| 18 |
+
}
|
| 19 |
+
pos() {
|
| 20 |
+
return this.position;
|
| 21 |
+
}
|
| 22 |
+
goBackTo(pos) {
|
| 23 |
+
this.position = pos;
|
| 24 |
+
}
|
| 25 |
+
goBack(n) {
|
| 26 |
+
this.position -= n;
|
| 27 |
+
}
|
| 28 |
+
advance(n) {
|
| 29 |
+
this.position += n;
|
| 30 |
+
}
|
| 31 |
+
goToEnd() {
|
| 32 |
+
this.position = this.source.length;
|
| 33 |
+
}
|
| 34 |
+
nextChar() {
|
| 35 |
+
return this.source.charCodeAt(this.position++) || 0;
|
| 36 |
+
}
|
| 37 |
+
peekChar(n = 0) {
|
| 38 |
+
return this.source.charCodeAt(this.position + n) || 0;
|
| 39 |
+
}
|
| 40 |
+
advanceIfChar(ch) {
|
| 41 |
+
if (ch === this.source.charCodeAt(this.position)) {
|
| 42 |
+
this.position++;
|
| 43 |
+
return true;
|
| 44 |
+
}
|
| 45 |
+
return false;
|
| 46 |
+
}
|
| 47 |
+
advanceIfChars(ch) {
|
| 48 |
+
let i;
|
| 49 |
+
if (this.position + ch.length > this.source.length) {
|
| 50 |
+
return false;
|
| 51 |
+
}
|
| 52 |
+
for (i = 0; i < ch.length; i++) {
|
| 53 |
+
if (this.source.charCodeAt(this.position + i) !== ch[i]) {
|
| 54 |
+
return false;
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
this.advance(i);
|
| 58 |
+
return true;
|
| 59 |
+
}
|
| 60 |
+
advanceIfRegExp(regex) {
|
| 61 |
+
const str = this.source.substr(this.position);
|
| 62 |
+
const match = str.match(regex);
|
| 63 |
+
if (match) {
|
| 64 |
+
this.position = this.position + match.index + match[0].length;
|
| 65 |
+
return match[0];
|
| 66 |
+
}
|
| 67 |
+
return '';
|
| 68 |
+
}
|
| 69 |
+
advanceUntilRegExp(regex) {
|
| 70 |
+
const str = this.source.substr(this.position);
|
| 71 |
+
const match = str.match(regex);
|
| 72 |
+
if (match) {
|
| 73 |
+
this.position = this.position + match.index;
|
| 74 |
+
return match[0];
|
| 75 |
+
}
|
| 76 |
+
else {
|
| 77 |
+
this.goToEnd();
|
| 78 |
+
}
|
| 79 |
+
return '';
|
| 80 |
+
}
|
| 81 |
+
advanceUntilChar(ch) {
|
| 82 |
+
while (this.position < this.source.length) {
|
| 83 |
+
if (this.source.charCodeAt(this.position) === ch) {
|
| 84 |
+
return true;
|
| 85 |
+
}
|
| 86 |
+
this.advance(1);
|
| 87 |
+
}
|
| 88 |
+
return false;
|
| 89 |
+
}
|
| 90 |
+
advanceUntilChars(ch) {
|
| 91 |
+
while (this.position + ch.length <= this.source.length) {
|
| 92 |
+
let i = 0;
|
| 93 |
+
for (; i < ch.length && this.source.charCodeAt(this.position + i) === ch[i]; i++) {
|
| 94 |
+
}
|
| 95 |
+
if (i === ch.length) {
|
| 96 |
+
return true;
|
| 97 |
+
}
|
| 98 |
+
this.advance(1);
|
| 99 |
+
}
|
| 100 |
+
this.goToEnd();
|
| 101 |
+
return false;
|
| 102 |
+
}
|
| 103 |
+
skipWhitespace() {
|
| 104 |
+
const n = this.advanceWhileChar(ch => {
|
| 105 |
+
return ch === _WSP || ch === _TAB || ch === _NWL || ch === _LFD || ch === _CAR;
|
| 106 |
+
});
|
| 107 |
+
return n > 0;
|
| 108 |
+
}
|
| 109 |
+
advanceWhileChar(condition) {
|
| 110 |
+
const posNow = this.position;
|
| 111 |
+
while (this.position < this.len && condition(this.source.charCodeAt(this.position))) {
|
| 112 |
+
this.position++;
|
| 113 |
+
}
|
| 114 |
+
return this.position - posNow;
|
| 115 |
+
}
|
| 116 |
+
}
|
| 117 |
+
const _BNG = '!'.charCodeAt(0);
|
| 118 |
+
const _MIN = '-'.charCodeAt(0);
|
| 119 |
+
const _LAN = '<'.charCodeAt(0);
|
| 120 |
+
const _RAN = '>'.charCodeAt(0);
|
| 121 |
+
const _FSL = '/'.charCodeAt(0);
|
| 122 |
+
const _EQS = '='.charCodeAt(0);
|
| 123 |
+
const _DQO = '"'.charCodeAt(0);
|
| 124 |
+
const _SQO = '\''.charCodeAt(0);
|
| 125 |
+
const _NWL = '\n'.charCodeAt(0);
|
| 126 |
+
const _CAR = '\r'.charCodeAt(0);
|
| 127 |
+
const _LFD = '\f'.charCodeAt(0);
|
| 128 |
+
const _WSP = ' '.charCodeAt(0);
|
| 129 |
+
const _TAB = '\t'.charCodeAt(0);
|
| 130 |
+
const htmlScriptContents = {
|
| 131 |
+
'text/x-handlebars-template': true,
|
| 132 |
+
// Fix for https://github.com/microsoft/vscode/issues/77977
|
| 133 |
+
'text/html': true,
|
| 134 |
+
};
|
| 135 |
+
export function createScanner(input, initialOffset = 0, initialState = ScannerState.WithinContent, emitPseudoCloseTags = false) {
|
| 136 |
+
const stream = new MultiLineStream(input, initialOffset);
|
| 137 |
+
let state = initialState;
|
| 138 |
+
let tokenOffset = 0;
|
| 139 |
+
let tokenType = TokenType.Unknown;
|
| 140 |
+
let tokenError;
|
| 141 |
+
let hasSpaceAfterTag;
|
| 142 |
+
let lastTag;
|
| 143 |
+
let lastAttributeName;
|
| 144 |
+
let lastTypeValue;
|
| 145 |
+
function nextElementName() {
|
| 146 |
+
return stream.advanceIfRegExp(/^[_:\w][_:\w-.\d]*/).toLowerCase();
|
| 147 |
+
}
|
| 148 |
+
function nextAttributeName() {
|
| 149 |
+
return stream.advanceIfRegExp(/^[^\s"'></=\x00-\x0F\x7F\x80-\x9F]*/).toLowerCase();
|
| 150 |
+
}
|
| 151 |
+
function finishToken(offset, type, errorMessage) {
|
| 152 |
+
tokenType = type;
|
| 153 |
+
tokenOffset = offset;
|
| 154 |
+
tokenError = errorMessage;
|
| 155 |
+
return type;
|
| 156 |
+
}
|
| 157 |
+
function scan() {
|
| 158 |
+
const offset = stream.pos();
|
| 159 |
+
const oldState = state;
|
| 160 |
+
const token = internalScan();
|
| 161 |
+
if (token !== TokenType.EOS && offset === stream.pos() && !(emitPseudoCloseTags && (token === TokenType.StartTagClose || token === TokenType.EndTagClose))) {
|
| 162 |
+
console.warn('Scanner.scan has not advanced at offset ' + offset + ', state before: ' + oldState + ' after: ' + state);
|
| 163 |
+
stream.advance(1);
|
| 164 |
+
return finishToken(offset, TokenType.Unknown);
|
| 165 |
+
}
|
| 166 |
+
return token;
|
| 167 |
+
}
|
| 168 |
+
function internalScan() {
|
| 169 |
+
const offset = stream.pos();
|
| 170 |
+
if (stream.eos()) {
|
| 171 |
+
return finishToken(offset, TokenType.EOS);
|
| 172 |
+
}
|
| 173 |
+
let errorMessage;
|
| 174 |
+
switch (state) {
|
| 175 |
+
case ScannerState.WithinComment:
|
| 176 |
+
if (stream.advanceIfChars([_MIN, _MIN, _RAN])) { // -->
|
| 177 |
+
state = ScannerState.WithinContent;
|
| 178 |
+
return finishToken(offset, TokenType.EndCommentTag);
|
| 179 |
+
}
|
| 180 |
+
stream.advanceUntilChars([_MIN, _MIN, _RAN]); // -->
|
| 181 |
+
return finishToken(offset, TokenType.Comment);
|
| 182 |
+
case ScannerState.WithinDoctype:
|
| 183 |
+
if (stream.advanceIfChar(_RAN)) {
|
| 184 |
+
state = ScannerState.WithinContent;
|
| 185 |
+
return finishToken(offset, TokenType.EndDoctypeTag);
|
| 186 |
+
}
|
| 187 |
+
stream.advanceUntilChar(_RAN); // >
|
| 188 |
+
return finishToken(offset, TokenType.Doctype);
|
| 189 |
+
case ScannerState.WithinContent:
|
| 190 |
+
if (stream.advanceIfChar(_LAN)) { // <
|
| 191 |
+
if (!stream.eos() && stream.peekChar() === _BNG) { // !
|
| 192 |
+
if (stream.advanceIfChars([_BNG, _MIN, _MIN])) { // <!--
|
| 193 |
+
state = ScannerState.WithinComment;
|
| 194 |
+
return finishToken(offset, TokenType.StartCommentTag);
|
| 195 |
+
}
|
| 196 |
+
if (stream.advanceIfRegExp(/^!doctype/i)) {
|
| 197 |
+
state = ScannerState.WithinDoctype;
|
| 198 |
+
return finishToken(offset, TokenType.StartDoctypeTag);
|
| 199 |
+
}
|
| 200 |
+
}
|
| 201 |
+
if (stream.advanceIfChar(_FSL)) { // /
|
| 202 |
+
state = ScannerState.AfterOpeningEndTag;
|
| 203 |
+
return finishToken(offset, TokenType.EndTagOpen);
|
| 204 |
+
}
|
| 205 |
+
state = ScannerState.AfterOpeningStartTag;
|
| 206 |
+
return finishToken(offset, TokenType.StartTagOpen);
|
| 207 |
+
}
|
| 208 |
+
stream.advanceUntilChar(_LAN);
|
| 209 |
+
return finishToken(offset, TokenType.Content);
|
| 210 |
+
case ScannerState.AfterOpeningEndTag:
|
| 211 |
+
const tagName = nextElementName();
|
| 212 |
+
if (tagName.length > 0) {
|
| 213 |
+
state = ScannerState.WithinEndTag;
|
| 214 |
+
return finishToken(offset, TokenType.EndTag);
|
| 215 |
+
}
|
| 216 |
+
if (stream.skipWhitespace()) { // white space is not valid here
|
| 217 |
+
return finishToken(offset, TokenType.Whitespace, l10n.t('Tag name must directly follow the open bracket.'));
|
| 218 |
+
}
|
| 219 |
+
state = ScannerState.WithinEndTag;
|
| 220 |
+
stream.advanceUntilChar(_RAN);
|
| 221 |
+
if (offset < stream.pos()) {
|
| 222 |
+
return finishToken(offset, TokenType.Unknown, l10n.t('End tag name expected.'));
|
| 223 |
+
}
|
| 224 |
+
return internalScan();
|
| 225 |
+
case ScannerState.WithinEndTag:
|
| 226 |
+
if (stream.skipWhitespace()) { // white space is valid here
|
| 227 |
+
return finishToken(offset, TokenType.Whitespace);
|
| 228 |
+
}
|
| 229 |
+
if (stream.advanceIfChar(_RAN)) { // >
|
| 230 |
+
state = ScannerState.WithinContent;
|
| 231 |
+
return finishToken(offset, TokenType.EndTagClose);
|
| 232 |
+
}
|
| 233 |
+
if (emitPseudoCloseTags && stream.peekChar() === _LAN) { // <
|
| 234 |
+
state = ScannerState.WithinContent;
|
| 235 |
+
return finishToken(offset, TokenType.EndTagClose, l10n.t('Closing bracket missing.'));
|
| 236 |
+
}
|
| 237 |
+
errorMessage = l10n.t('Closing bracket expected.');
|
| 238 |
+
break;
|
| 239 |
+
case ScannerState.AfterOpeningStartTag:
|
| 240 |
+
lastTag = nextElementName();
|
| 241 |
+
lastTypeValue = void 0;
|
| 242 |
+
lastAttributeName = void 0;
|
| 243 |
+
if (lastTag.length > 0) {
|
| 244 |
+
hasSpaceAfterTag = false;
|
| 245 |
+
state = ScannerState.WithinTag;
|
| 246 |
+
return finishToken(offset, TokenType.StartTag);
|
| 247 |
+
}
|
| 248 |
+
if (stream.skipWhitespace()) { // white space is not valid here
|
| 249 |
+
return finishToken(offset, TokenType.Whitespace, l10n.t('Tag name must directly follow the open bracket.'));
|
| 250 |
+
}
|
| 251 |
+
state = ScannerState.WithinTag;
|
| 252 |
+
stream.advanceUntilChar(_RAN);
|
| 253 |
+
if (offset < stream.pos()) {
|
| 254 |
+
return finishToken(offset, TokenType.Unknown, l10n.t('Start tag name expected.'));
|
| 255 |
+
}
|
| 256 |
+
return internalScan();
|
| 257 |
+
case ScannerState.WithinTag:
|
| 258 |
+
if (stream.skipWhitespace()) {
|
| 259 |
+
hasSpaceAfterTag = true; // remember that we have seen a whitespace
|
| 260 |
+
return finishToken(offset, TokenType.Whitespace);
|
| 261 |
+
}
|
| 262 |
+
if (hasSpaceAfterTag) {
|
| 263 |
+
lastAttributeName = nextAttributeName();
|
| 264 |
+
if (lastAttributeName.length > 0) {
|
| 265 |
+
state = ScannerState.AfterAttributeName;
|
| 266 |
+
hasSpaceAfterTag = false;
|
| 267 |
+
return finishToken(offset, TokenType.AttributeName);
|
| 268 |
+
}
|
| 269 |
+
}
|
| 270 |
+
if (stream.advanceIfChars([_FSL, _RAN])) { // />
|
| 271 |
+
state = ScannerState.WithinContent;
|
| 272 |
+
return finishToken(offset, TokenType.StartTagSelfClose);
|
| 273 |
+
}
|
| 274 |
+
if (stream.advanceIfChar(_RAN)) { // >
|
| 275 |
+
if (lastTag === 'script') {
|
| 276 |
+
if (lastTypeValue && htmlScriptContents[lastTypeValue]) {
|
| 277 |
+
// stay in html
|
| 278 |
+
state = ScannerState.WithinContent;
|
| 279 |
+
}
|
| 280 |
+
else {
|
| 281 |
+
state = ScannerState.WithinScriptContent;
|
| 282 |
+
}
|
| 283 |
+
}
|
| 284 |
+
else if (lastTag === 'style') {
|
| 285 |
+
state = ScannerState.WithinStyleContent;
|
| 286 |
+
}
|
| 287 |
+
else {
|
| 288 |
+
state = ScannerState.WithinContent;
|
| 289 |
+
}
|
| 290 |
+
return finishToken(offset, TokenType.StartTagClose);
|
| 291 |
+
}
|
| 292 |
+
if (emitPseudoCloseTags && stream.peekChar() === _LAN) { // <
|
| 293 |
+
state = ScannerState.WithinContent;
|
| 294 |
+
return finishToken(offset, TokenType.StartTagClose, l10n.t('Closing bracket missing.'));
|
| 295 |
+
}
|
| 296 |
+
stream.advance(1);
|
| 297 |
+
return finishToken(offset, TokenType.Unknown, l10n.t('Unexpected character in tag.'));
|
| 298 |
+
case ScannerState.AfterAttributeName:
|
| 299 |
+
if (stream.skipWhitespace()) {
|
| 300 |
+
hasSpaceAfterTag = true;
|
| 301 |
+
return finishToken(offset, TokenType.Whitespace);
|
| 302 |
+
}
|
| 303 |
+
if (stream.advanceIfChar(_EQS)) {
|
| 304 |
+
state = ScannerState.BeforeAttributeValue;
|
| 305 |
+
return finishToken(offset, TokenType.DelimiterAssign);
|
| 306 |
+
}
|
| 307 |
+
state = ScannerState.WithinTag;
|
| 308 |
+
return internalScan(); // no advance yet - jump to WithinTag
|
| 309 |
+
case ScannerState.BeforeAttributeValue:
|
| 310 |
+
if (stream.skipWhitespace()) {
|
| 311 |
+
return finishToken(offset, TokenType.Whitespace);
|
| 312 |
+
}
|
| 313 |
+
let attributeValue = stream.advanceIfRegExp(/^[^\s"'`=<>]+/);
|
| 314 |
+
if (attributeValue.length > 0) {
|
| 315 |
+
if (stream.peekChar() === _RAN && stream.peekChar(-1) === _FSL) { // <foo bar=http://foo/>
|
| 316 |
+
stream.goBack(1);
|
| 317 |
+
attributeValue = attributeValue.substring(0, attributeValue.length - 1);
|
| 318 |
+
}
|
| 319 |
+
if (lastAttributeName === 'type') {
|
| 320 |
+
lastTypeValue = attributeValue;
|
| 321 |
+
}
|
| 322 |
+
if (attributeValue.length > 0) {
|
| 323 |
+
state = ScannerState.WithinTag;
|
| 324 |
+
hasSpaceAfterTag = false;
|
| 325 |
+
return finishToken(offset, TokenType.AttributeValue);
|
| 326 |
+
}
|
| 327 |
+
}
|
| 328 |
+
const ch = stream.peekChar();
|
| 329 |
+
if (ch === _SQO || ch === _DQO) {
|
| 330 |
+
stream.advance(1); // consume quote
|
| 331 |
+
if (stream.advanceUntilChar(ch)) {
|
| 332 |
+
stream.advance(1); // consume quote
|
| 333 |
+
}
|
| 334 |
+
if (lastAttributeName === 'type') {
|
| 335 |
+
lastTypeValue = stream.getSource().substring(offset + 1, stream.pos() - 1);
|
| 336 |
+
}
|
| 337 |
+
state = ScannerState.WithinTag;
|
| 338 |
+
hasSpaceAfterTag = false;
|
| 339 |
+
return finishToken(offset, TokenType.AttributeValue);
|
| 340 |
+
}
|
| 341 |
+
state = ScannerState.WithinTag;
|
| 342 |
+
hasSpaceAfterTag = false;
|
| 343 |
+
return internalScan(); // no advance yet - jump to WithinTag
|
| 344 |
+
case ScannerState.WithinScriptContent:
|
| 345 |
+
// see http://stackoverflow.com/questions/14574471/how-do-browsers-parse-a-script-tag-exactly
|
| 346 |
+
let sciptState = 1;
|
| 347 |
+
while (!stream.eos()) {
|
| 348 |
+
const match = stream.advanceIfRegExp(/<!--|-->|<\/?script\s*\/?>?/i);
|
| 349 |
+
if (match.length === 0) {
|
| 350 |
+
stream.goToEnd();
|
| 351 |
+
return finishToken(offset, TokenType.Script);
|
| 352 |
+
}
|
| 353 |
+
else if (match === '<!--') {
|
| 354 |
+
if (sciptState === 1) {
|
| 355 |
+
sciptState = 2;
|
| 356 |
+
}
|
| 357 |
+
}
|
| 358 |
+
else if (match === '-->') {
|
| 359 |
+
sciptState = 1;
|
| 360 |
+
}
|
| 361 |
+
else if (match[1] !== '/') { // <script
|
| 362 |
+
if (sciptState === 2) {
|
| 363 |
+
sciptState = 3;
|
| 364 |
+
}
|
| 365 |
+
}
|
| 366 |
+
else { // </script
|
| 367 |
+
if (sciptState === 3) {
|
| 368 |
+
sciptState = 2;
|
| 369 |
+
}
|
| 370 |
+
else {
|
| 371 |
+
stream.goBack(match.length); // to the beginning of the closing tag
|
| 372 |
+
break;
|
| 373 |
+
}
|
| 374 |
+
}
|
| 375 |
+
}
|
| 376 |
+
state = ScannerState.WithinContent;
|
| 377 |
+
if (offset < stream.pos()) {
|
| 378 |
+
return finishToken(offset, TokenType.Script);
|
| 379 |
+
}
|
| 380 |
+
return internalScan(); // no advance yet - jump to content
|
| 381 |
+
case ScannerState.WithinStyleContent:
|
| 382 |
+
stream.advanceUntilRegExp(/<\/style/i);
|
| 383 |
+
state = ScannerState.WithinContent;
|
| 384 |
+
if (offset < stream.pos()) {
|
| 385 |
+
return finishToken(offset, TokenType.Styles);
|
| 386 |
+
}
|
| 387 |
+
return internalScan(); // no advance yet - jump to content
|
| 388 |
+
}
|
| 389 |
+
stream.advance(1);
|
| 390 |
+
state = ScannerState.WithinContent;
|
| 391 |
+
return finishToken(offset, TokenType.Unknown, errorMessage);
|
| 392 |
+
}
|
| 393 |
+
return {
|
| 394 |
+
scan,
|
| 395 |
+
getTokenType: () => tokenType,
|
| 396 |
+
getTokenOffset: () => tokenOffset,
|
| 397 |
+
getTokenLength: () => stream.pos() - tokenOffset,
|
| 398 |
+
getTokenEnd: () => stream.pos(),
|
| 399 |
+
getTokenText: () => stream.getSource().substring(tokenOffset, stream.pos()),
|
| 400 |
+
getScannerState: () => state,
|
| 401 |
+
getTokenError: () => tokenError
|
| 402 |
+
};
|
| 403 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlCompletion.js
CHANGED
|
@@ -1,3 +1,579 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
import { createScanner } from '../parser/htmlScanner';
|
| 6 |
+
import { ScannerState, TokenType, Position, CompletionItemKind, Range, TextEdit, InsertTextFormat, MarkupKind } from '../htmlLanguageTypes';
|
| 7 |
+
import { entities } from '../parser/htmlEntities';
|
| 8 |
+
import * as l10n from '@vscode/l10n';
|
| 9 |
+
import { isLetterOrDigit, endsWith, startsWith } from '../utils/strings';
|
| 10 |
+
import { isDefined } from '../utils/object';
|
| 11 |
+
import { generateDocumentation } from '../languageFacts/dataProvider';
|
| 12 |
+
import { PathCompletionParticipant } from './pathCompletion';
|
| 13 |
+
export class HTMLCompletion {
|
| 14 |
+
constructor(lsOptions, dataManager) {
|
| 15 |
+
this.lsOptions = lsOptions;
|
| 16 |
+
this.dataManager = dataManager;
|
| 17 |
+
this.completionParticipants = [];
|
| 18 |
+
}
|
| 19 |
+
setCompletionParticipants(registeredCompletionParticipants) {
|
| 20 |
+
this.completionParticipants = registeredCompletionParticipants || [];
|
| 21 |
+
}
|
| 22 |
+
async doComplete2(document, position, htmlDocument, documentContext, settings) {
|
| 23 |
+
if (!this.lsOptions.fileSystemProvider || !this.lsOptions.fileSystemProvider.readDirectory) {
|
| 24 |
+
return this.doComplete(document, position, htmlDocument, settings);
|
| 25 |
+
}
|
| 26 |
+
const participant = new PathCompletionParticipant(this.dataManager, this.lsOptions.fileSystemProvider.readDirectory);
|
| 27 |
+
const contributedParticipants = this.completionParticipants;
|
| 28 |
+
this.completionParticipants = [participant].concat(contributedParticipants);
|
| 29 |
+
const result = this.doComplete(document, position, htmlDocument, settings);
|
| 30 |
+
try {
|
| 31 |
+
const pathCompletionResult = await participant.computeCompletions(document, documentContext);
|
| 32 |
+
return {
|
| 33 |
+
isIncomplete: result.isIncomplete || pathCompletionResult.isIncomplete,
|
| 34 |
+
items: pathCompletionResult.items.concat(result.items)
|
| 35 |
+
};
|
| 36 |
+
}
|
| 37 |
+
finally {
|
| 38 |
+
this.completionParticipants = contributedParticipants;
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
doComplete(document, position, htmlDocument, settings) {
|
| 42 |
+
const result = this._doComplete(document, position, htmlDocument, settings);
|
| 43 |
+
return this.convertCompletionList(result);
|
| 44 |
+
}
|
| 45 |
+
_doComplete(document, position, htmlDocument, settings) {
|
| 46 |
+
const result = {
|
| 47 |
+
isIncomplete: false,
|
| 48 |
+
items: []
|
| 49 |
+
};
|
| 50 |
+
const completionParticipants = this.completionParticipants;
|
| 51 |
+
const dataProviders = this.dataManager.getDataProviders().filter(p => p.isApplicable(document.languageId) && (!settings || settings[p.getId()] !== false));
|
| 52 |
+
const doesSupportMarkdown = this.doesSupportMarkdown();
|
| 53 |
+
const text = document.getText();
|
| 54 |
+
const offset = document.offsetAt(position);
|
| 55 |
+
const node = htmlDocument.findNodeBefore(offset);
|
| 56 |
+
if (!node) {
|
| 57 |
+
return result;
|
| 58 |
+
}
|
| 59 |
+
const scanner = createScanner(text, node.start);
|
| 60 |
+
let currentTag = '';
|
| 61 |
+
let currentAttributeName;
|
| 62 |
+
let voidElements;
|
| 63 |
+
function getReplaceRange(replaceStart, replaceEnd = offset) {
|
| 64 |
+
if (replaceStart > offset) {
|
| 65 |
+
replaceStart = offset;
|
| 66 |
+
}
|
| 67 |
+
return { start: document.positionAt(replaceStart), end: document.positionAt(replaceEnd) };
|
| 68 |
+
}
|
| 69 |
+
function collectOpenTagSuggestions(afterOpenBracket, tagNameEnd) {
|
| 70 |
+
const range = getReplaceRange(afterOpenBracket, tagNameEnd);
|
| 71 |
+
dataProviders.forEach((provider) => {
|
| 72 |
+
provider.provideTags().forEach(tag => {
|
| 73 |
+
result.items.push({
|
| 74 |
+
label: tag.name,
|
| 75 |
+
kind: CompletionItemKind.Property,
|
| 76 |
+
documentation: generateDocumentation(tag, undefined, doesSupportMarkdown),
|
| 77 |
+
textEdit: TextEdit.replace(range, tag.name),
|
| 78 |
+
insertTextFormat: InsertTextFormat.PlainText
|
| 79 |
+
});
|
| 80 |
+
});
|
| 81 |
+
});
|
| 82 |
+
return result;
|
| 83 |
+
}
|
| 84 |
+
function getLineIndent(offset) {
|
| 85 |
+
let start = offset;
|
| 86 |
+
while (start > 0) {
|
| 87 |
+
const ch = text.charAt(start - 1);
|
| 88 |
+
if ("\n\r".indexOf(ch) >= 0) {
|
| 89 |
+
return text.substring(start, offset);
|
| 90 |
+
}
|
| 91 |
+
if (!isWhiteSpace(ch)) {
|
| 92 |
+
return null;
|
| 93 |
+
}
|
| 94 |
+
start--;
|
| 95 |
+
}
|
| 96 |
+
return text.substring(0, offset);
|
| 97 |
+
}
|
| 98 |
+
function collectCloseTagSuggestions(afterOpenBracket, inOpenTag, tagNameEnd = offset) {
|
| 99 |
+
const range = getReplaceRange(afterOpenBracket, tagNameEnd);
|
| 100 |
+
const closeTag = isFollowedBy(text, tagNameEnd, ScannerState.WithinEndTag, TokenType.EndTagClose) ? '' : '>';
|
| 101 |
+
let curr = node;
|
| 102 |
+
if (inOpenTag) {
|
| 103 |
+
curr = curr.parent; // don't suggest the own tag, it's not yet open
|
| 104 |
+
}
|
| 105 |
+
while (curr) {
|
| 106 |
+
const tag = curr.tag;
|
| 107 |
+
if (tag && (!curr.closed || curr.endTagStart && (curr.endTagStart > offset))) {
|
| 108 |
+
const item = {
|
| 109 |
+
label: '/' + tag,
|
| 110 |
+
kind: CompletionItemKind.Property,
|
| 111 |
+
filterText: '/' + tag,
|
| 112 |
+
textEdit: TextEdit.replace(range, '/' + tag + closeTag),
|
| 113 |
+
insertTextFormat: InsertTextFormat.PlainText
|
| 114 |
+
};
|
| 115 |
+
const startIndent = getLineIndent(curr.start);
|
| 116 |
+
const endIndent = getLineIndent(afterOpenBracket - 1);
|
| 117 |
+
if (startIndent !== null && endIndent !== null && startIndent !== endIndent) {
|
| 118 |
+
const insertText = startIndent + '</' + tag + closeTag;
|
| 119 |
+
item.textEdit = TextEdit.replace(getReplaceRange(afterOpenBracket - 1 - endIndent.length), insertText);
|
| 120 |
+
item.filterText = endIndent + '</' + tag;
|
| 121 |
+
}
|
| 122 |
+
result.items.push(item);
|
| 123 |
+
return result;
|
| 124 |
+
}
|
| 125 |
+
curr = curr.parent;
|
| 126 |
+
}
|
| 127 |
+
if (inOpenTag) {
|
| 128 |
+
return result;
|
| 129 |
+
}
|
| 130 |
+
dataProviders.forEach(provider => {
|
| 131 |
+
provider.provideTags().forEach(tag => {
|
| 132 |
+
result.items.push({
|
| 133 |
+
label: '/' + tag.name,
|
| 134 |
+
kind: CompletionItemKind.Property,
|
| 135 |
+
documentation: generateDocumentation(tag, undefined, doesSupportMarkdown),
|
| 136 |
+
filterText: '/' + tag.name + closeTag,
|
| 137 |
+
textEdit: TextEdit.replace(range, '/' + tag.name + closeTag),
|
| 138 |
+
insertTextFormat: InsertTextFormat.PlainText
|
| 139 |
+
});
|
| 140 |
+
});
|
| 141 |
+
});
|
| 142 |
+
return result;
|
| 143 |
+
}
|
| 144 |
+
const collectAutoCloseTagSuggestion = (tagCloseEnd, tag) => {
|
| 145 |
+
if (settings && settings.hideAutoCompleteProposals) {
|
| 146 |
+
return result;
|
| 147 |
+
}
|
| 148 |
+
voidElements ?? (voidElements = this.dataManager.getVoidElements(dataProviders));
|
| 149 |
+
if (!this.dataManager.isVoidElement(tag, voidElements)) {
|
| 150 |
+
const pos = document.positionAt(tagCloseEnd);
|
| 151 |
+
result.items.push({
|
| 152 |
+
label: '</' + tag + '>',
|
| 153 |
+
kind: CompletionItemKind.Property,
|
| 154 |
+
filterText: '</' + tag + '>',
|
| 155 |
+
textEdit: TextEdit.insert(pos, '$0</' + tag + '>'),
|
| 156 |
+
insertTextFormat: InsertTextFormat.Snippet
|
| 157 |
+
});
|
| 158 |
+
}
|
| 159 |
+
return result;
|
| 160 |
+
};
|
| 161 |
+
function collectTagSuggestions(tagStart, tagEnd) {
|
| 162 |
+
collectOpenTagSuggestions(tagStart, tagEnd);
|
| 163 |
+
collectCloseTagSuggestions(tagStart, true, tagEnd);
|
| 164 |
+
return result;
|
| 165 |
+
}
|
| 166 |
+
function getExistingAttributes() {
|
| 167 |
+
const existingAttributes = Object.create(null);
|
| 168 |
+
node.attributeNames.forEach(attribute => {
|
| 169 |
+
existingAttributes[attribute] = true;
|
| 170 |
+
});
|
| 171 |
+
return existingAttributes;
|
| 172 |
+
}
|
| 173 |
+
function collectAttributeNameSuggestions(nameStart, nameEnd = offset) {
|
| 174 |
+
let replaceEnd = offset;
|
| 175 |
+
while (replaceEnd < nameEnd && text[replaceEnd] !== '<') { // < is a valid attribute name character, but we rather assume the attribute name ends. See #23236.
|
| 176 |
+
replaceEnd++;
|
| 177 |
+
}
|
| 178 |
+
const currentAttribute = text.substring(nameStart, nameEnd);
|
| 179 |
+
const range = getReplaceRange(nameStart, replaceEnd);
|
| 180 |
+
let value = '';
|
| 181 |
+
if (!isFollowedBy(text, nameEnd, ScannerState.AfterAttributeName, TokenType.DelimiterAssign)) {
|
| 182 |
+
const defaultValue = settings?.attributeDefaultValue ?? 'doublequotes';
|
| 183 |
+
if (defaultValue === 'empty') {
|
| 184 |
+
value = '=$1';
|
| 185 |
+
}
|
| 186 |
+
else if (defaultValue === 'singlequotes') {
|
| 187 |
+
value = '=\'$1\'';
|
| 188 |
+
}
|
| 189 |
+
else {
|
| 190 |
+
value = '="$1"';
|
| 191 |
+
}
|
| 192 |
+
}
|
| 193 |
+
const seenAttributes = getExistingAttributes();
|
| 194 |
+
// include current typing attribute
|
| 195 |
+
seenAttributes[currentAttribute] = false;
|
| 196 |
+
dataProviders.forEach(provider => {
|
| 197 |
+
provider.provideAttributes(currentTag).forEach(attr => {
|
| 198 |
+
if (seenAttributes[attr.name]) {
|
| 199 |
+
return;
|
| 200 |
+
}
|
| 201 |
+
seenAttributes[attr.name] = true;
|
| 202 |
+
let codeSnippet = attr.name;
|
| 203 |
+
let command;
|
| 204 |
+
if (attr.valueSet !== 'v' && value.length) {
|
| 205 |
+
codeSnippet = codeSnippet + value;
|
| 206 |
+
if (attr.valueSet || attr.name === 'style') {
|
| 207 |
+
command = {
|
| 208 |
+
title: 'Suggest',
|
| 209 |
+
command: 'editor.action.triggerSuggest'
|
| 210 |
+
};
|
| 211 |
+
}
|
| 212 |
+
}
|
| 213 |
+
result.items.push({
|
| 214 |
+
label: attr.name,
|
| 215 |
+
kind: attr.valueSet === 'handler' ? CompletionItemKind.Function : CompletionItemKind.Value,
|
| 216 |
+
documentation: generateDocumentation(attr, undefined, doesSupportMarkdown),
|
| 217 |
+
textEdit: TextEdit.replace(range, codeSnippet),
|
| 218 |
+
insertTextFormat: InsertTextFormat.Snippet,
|
| 219 |
+
command
|
| 220 |
+
});
|
| 221 |
+
});
|
| 222 |
+
});
|
| 223 |
+
collectDataAttributesSuggestions(range, seenAttributes);
|
| 224 |
+
return result;
|
| 225 |
+
}
|
| 226 |
+
function collectDataAttributesSuggestions(range, seenAttributes) {
|
| 227 |
+
const dataAttr = 'data-';
|
| 228 |
+
const dataAttributes = {};
|
| 229 |
+
dataAttributes[dataAttr] = `${dataAttr}$1="$2"`;
|
| 230 |
+
function addNodeDataAttributes(node) {
|
| 231 |
+
node.attributeNames.forEach(attr => {
|
| 232 |
+
if (startsWith(attr, dataAttr) && !dataAttributes[attr] && !seenAttributes[attr]) {
|
| 233 |
+
dataAttributes[attr] = attr + '="$1"';
|
| 234 |
+
}
|
| 235 |
+
});
|
| 236 |
+
node.children.forEach(child => addNodeDataAttributes(child));
|
| 237 |
+
}
|
| 238 |
+
if (htmlDocument) {
|
| 239 |
+
htmlDocument.roots.forEach(root => addNodeDataAttributes(root));
|
| 240 |
+
}
|
| 241 |
+
Object.keys(dataAttributes).forEach(attr => result.items.push({
|
| 242 |
+
label: attr,
|
| 243 |
+
kind: CompletionItemKind.Value,
|
| 244 |
+
textEdit: TextEdit.replace(range, dataAttributes[attr]),
|
| 245 |
+
insertTextFormat: InsertTextFormat.Snippet
|
| 246 |
+
}));
|
| 247 |
+
}
|
| 248 |
+
function collectAttributeValueSuggestions(valueStart, valueEnd = offset) {
|
| 249 |
+
let range;
|
| 250 |
+
let addQuotes;
|
| 251 |
+
let valuePrefix;
|
| 252 |
+
if (offset > valueStart && offset <= valueEnd && isQuote(text[valueStart])) {
|
| 253 |
+
// inside quoted attribute
|
| 254 |
+
const valueContentStart = valueStart + 1;
|
| 255 |
+
let valueContentEnd = valueEnd;
|
| 256 |
+
// valueEnd points to the char after quote, which encloses the replace range
|
| 257 |
+
if (valueEnd > valueStart && text[valueEnd - 1] === text[valueStart]) {
|
| 258 |
+
valueContentEnd--;
|
| 259 |
+
}
|
| 260 |
+
const wsBefore = getWordStart(text, offset, valueContentStart);
|
| 261 |
+
const wsAfter = getWordEnd(text, offset, valueContentEnd);
|
| 262 |
+
range = getReplaceRange(wsBefore, wsAfter);
|
| 263 |
+
valuePrefix = offset >= valueContentStart && offset <= valueContentEnd ? text.substring(valueContentStart, offset) : '';
|
| 264 |
+
addQuotes = false;
|
| 265 |
+
}
|
| 266 |
+
else {
|
| 267 |
+
range = getReplaceRange(valueStart, valueEnd);
|
| 268 |
+
valuePrefix = text.substring(valueStart, offset);
|
| 269 |
+
addQuotes = true;
|
| 270 |
+
}
|
| 271 |
+
if (completionParticipants.length > 0) {
|
| 272 |
+
const tag = currentTag.toLowerCase();
|
| 273 |
+
const attribute = currentAttributeName.toLowerCase();
|
| 274 |
+
const fullRange = getReplaceRange(valueStart, valueEnd);
|
| 275 |
+
for (const participant of completionParticipants) {
|
| 276 |
+
if (participant.onHtmlAttributeValue) {
|
| 277 |
+
participant.onHtmlAttributeValue({ document, position, tag, attribute, value: valuePrefix, range: fullRange });
|
| 278 |
+
}
|
| 279 |
+
}
|
| 280 |
+
}
|
| 281 |
+
dataProviders.forEach(provider => {
|
| 282 |
+
provider.provideValues(currentTag, currentAttributeName).forEach(value => {
|
| 283 |
+
const insertText = addQuotes ? '"' + value.name + '"' : value.name;
|
| 284 |
+
result.items.push({
|
| 285 |
+
label: value.name,
|
| 286 |
+
filterText: insertText,
|
| 287 |
+
kind: CompletionItemKind.Unit,
|
| 288 |
+
documentation: generateDocumentation(value, undefined, doesSupportMarkdown),
|
| 289 |
+
textEdit: TextEdit.replace(range, insertText),
|
| 290 |
+
insertTextFormat: InsertTextFormat.PlainText
|
| 291 |
+
});
|
| 292 |
+
});
|
| 293 |
+
});
|
| 294 |
+
collectCharacterEntityProposals();
|
| 295 |
+
return result;
|
| 296 |
+
}
|
| 297 |
+
function scanNextForEndPos(nextToken) {
|
| 298 |
+
if (offset === scanner.getTokenEnd()) {
|
| 299 |
+
token = scanner.scan();
|
| 300 |
+
if (token === nextToken && scanner.getTokenOffset() === offset) {
|
| 301 |
+
return scanner.getTokenEnd();
|
| 302 |
+
}
|
| 303 |
+
}
|
| 304 |
+
return offset;
|
| 305 |
+
}
|
| 306 |
+
function collectInsideContent() {
|
| 307 |
+
for (const participant of completionParticipants) {
|
| 308 |
+
if (participant.onHtmlContent) {
|
| 309 |
+
participant.onHtmlContent({ document, position });
|
| 310 |
+
}
|
| 311 |
+
}
|
| 312 |
+
return collectCharacterEntityProposals();
|
| 313 |
+
}
|
| 314 |
+
function collectCharacterEntityProposals() {
|
| 315 |
+
// character entities
|
| 316 |
+
let k = offset - 1;
|
| 317 |
+
let characterStart = position.character;
|
| 318 |
+
while (k >= 0 && isLetterOrDigit(text, k)) {
|
| 319 |
+
k--;
|
| 320 |
+
characterStart--;
|
| 321 |
+
}
|
| 322 |
+
if (k >= 0 && text[k] === '&') {
|
| 323 |
+
const range = Range.create(Position.create(position.line, characterStart - 1), position);
|
| 324 |
+
for (const entity in entities) {
|
| 325 |
+
if (endsWith(entity, ';')) {
|
| 326 |
+
const label = '&' + entity;
|
| 327 |
+
result.items.push({
|
| 328 |
+
label,
|
| 329 |
+
kind: CompletionItemKind.Keyword,
|
| 330 |
+
documentation: l10n.t('Character entity representing \'{0}\'', entities[entity]),
|
| 331 |
+
textEdit: TextEdit.replace(range, label),
|
| 332 |
+
insertTextFormat: InsertTextFormat.PlainText
|
| 333 |
+
});
|
| 334 |
+
}
|
| 335 |
+
}
|
| 336 |
+
}
|
| 337 |
+
return result;
|
| 338 |
+
}
|
| 339 |
+
function suggestDoctype(replaceStart, replaceEnd) {
|
| 340 |
+
const range = getReplaceRange(replaceStart, replaceEnd);
|
| 341 |
+
result.items.push({
|
| 342 |
+
label: '!DOCTYPE',
|
| 343 |
+
kind: CompletionItemKind.Property,
|
| 344 |
+
documentation: 'A preamble for an HTML document.',
|
| 345 |
+
textEdit: TextEdit.replace(range, '!DOCTYPE html>'),
|
| 346 |
+
insertTextFormat: InsertTextFormat.PlainText
|
| 347 |
+
});
|
| 348 |
+
}
|
| 349 |
+
let token = scanner.scan();
|
| 350 |
+
while (token !== TokenType.EOS && scanner.getTokenOffset() <= offset) {
|
| 351 |
+
switch (token) {
|
| 352 |
+
case TokenType.StartTagOpen:
|
| 353 |
+
if (scanner.getTokenEnd() === offset) {
|
| 354 |
+
const endPos = scanNextForEndPos(TokenType.StartTag);
|
| 355 |
+
if (position.line === 0) {
|
| 356 |
+
suggestDoctype(offset, endPos);
|
| 357 |
+
}
|
| 358 |
+
return collectTagSuggestions(offset, endPos);
|
| 359 |
+
}
|
| 360 |
+
break;
|
| 361 |
+
case TokenType.StartTag:
|
| 362 |
+
if (scanner.getTokenOffset() <= offset && offset <= scanner.getTokenEnd()) {
|
| 363 |
+
return collectOpenTagSuggestions(scanner.getTokenOffset(), scanner.getTokenEnd());
|
| 364 |
+
}
|
| 365 |
+
currentTag = scanner.getTokenText();
|
| 366 |
+
break;
|
| 367 |
+
case TokenType.AttributeName:
|
| 368 |
+
if (scanner.getTokenOffset() <= offset && offset <= scanner.getTokenEnd()) {
|
| 369 |
+
return collectAttributeNameSuggestions(scanner.getTokenOffset(), scanner.getTokenEnd());
|
| 370 |
+
}
|
| 371 |
+
currentAttributeName = scanner.getTokenText();
|
| 372 |
+
break;
|
| 373 |
+
case TokenType.DelimiterAssign:
|
| 374 |
+
if (scanner.getTokenEnd() === offset) {
|
| 375 |
+
const endPos = scanNextForEndPos(TokenType.AttributeValue);
|
| 376 |
+
return collectAttributeValueSuggestions(offset, endPos);
|
| 377 |
+
}
|
| 378 |
+
break;
|
| 379 |
+
case TokenType.AttributeValue:
|
| 380 |
+
if (scanner.getTokenOffset() <= offset && offset <= scanner.getTokenEnd()) {
|
| 381 |
+
return collectAttributeValueSuggestions(scanner.getTokenOffset(), scanner.getTokenEnd());
|
| 382 |
+
}
|
| 383 |
+
break;
|
| 384 |
+
case TokenType.Whitespace:
|
| 385 |
+
if (offset <= scanner.getTokenEnd()) {
|
| 386 |
+
switch (scanner.getScannerState()) {
|
| 387 |
+
case ScannerState.AfterOpeningStartTag:
|
| 388 |
+
const startPos = scanner.getTokenOffset();
|
| 389 |
+
const endTagPos = scanNextForEndPos(TokenType.StartTag);
|
| 390 |
+
return collectTagSuggestions(startPos, endTagPos);
|
| 391 |
+
case ScannerState.WithinTag:
|
| 392 |
+
case ScannerState.AfterAttributeName:
|
| 393 |
+
return collectAttributeNameSuggestions(scanner.getTokenEnd());
|
| 394 |
+
case ScannerState.BeforeAttributeValue:
|
| 395 |
+
return collectAttributeValueSuggestions(scanner.getTokenEnd());
|
| 396 |
+
case ScannerState.AfterOpeningEndTag:
|
| 397 |
+
return collectCloseTagSuggestions(scanner.getTokenOffset() - 1, false);
|
| 398 |
+
case ScannerState.WithinContent:
|
| 399 |
+
return collectInsideContent();
|
| 400 |
+
}
|
| 401 |
+
}
|
| 402 |
+
break;
|
| 403 |
+
case TokenType.EndTagOpen:
|
| 404 |
+
if (offset <= scanner.getTokenEnd()) {
|
| 405 |
+
const afterOpenBracket = scanner.getTokenOffset() + 1;
|
| 406 |
+
const endOffset = scanNextForEndPos(TokenType.EndTag);
|
| 407 |
+
return collectCloseTagSuggestions(afterOpenBracket, false, endOffset);
|
| 408 |
+
}
|
| 409 |
+
break;
|
| 410 |
+
case TokenType.EndTag:
|
| 411 |
+
if (offset <= scanner.getTokenEnd()) {
|
| 412 |
+
let start = scanner.getTokenOffset() - 1;
|
| 413 |
+
while (start >= 0) {
|
| 414 |
+
const ch = text.charAt(start);
|
| 415 |
+
if (ch === '/') {
|
| 416 |
+
return collectCloseTagSuggestions(start, false, scanner.getTokenEnd());
|
| 417 |
+
}
|
| 418 |
+
else if (!isWhiteSpace(ch)) {
|
| 419 |
+
break;
|
| 420 |
+
}
|
| 421 |
+
start--;
|
| 422 |
+
}
|
| 423 |
+
}
|
| 424 |
+
break;
|
| 425 |
+
case TokenType.StartTagClose:
|
| 426 |
+
if (offset <= scanner.getTokenEnd()) {
|
| 427 |
+
if (currentTag) {
|
| 428 |
+
return collectAutoCloseTagSuggestion(scanner.getTokenEnd(), currentTag);
|
| 429 |
+
}
|
| 430 |
+
}
|
| 431 |
+
break;
|
| 432 |
+
case TokenType.Content:
|
| 433 |
+
if (offset <= scanner.getTokenEnd()) {
|
| 434 |
+
return collectInsideContent();
|
| 435 |
+
}
|
| 436 |
+
break;
|
| 437 |
+
default:
|
| 438 |
+
if (offset <= scanner.getTokenEnd()) {
|
| 439 |
+
return result;
|
| 440 |
+
}
|
| 441 |
+
break;
|
| 442 |
+
}
|
| 443 |
+
token = scanner.scan();
|
| 444 |
+
}
|
| 445 |
+
return result;
|
| 446 |
+
}
|
| 447 |
+
doQuoteComplete(document, position, htmlDocument, settings) {
|
| 448 |
+
const offset = document.offsetAt(position);
|
| 449 |
+
if (offset <= 0) {
|
| 450 |
+
return null;
|
| 451 |
+
}
|
| 452 |
+
const defaultValue = settings?.attributeDefaultValue ?? 'doublequotes';
|
| 453 |
+
if (defaultValue === 'empty') {
|
| 454 |
+
return null;
|
| 455 |
+
}
|
| 456 |
+
const char = document.getText().charAt(offset - 1);
|
| 457 |
+
if (char !== '=') {
|
| 458 |
+
return null;
|
| 459 |
+
}
|
| 460 |
+
const value = defaultValue === 'doublequotes' ? '"$1"' : '\'$1\'';
|
| 461 |
+
const node = htmlDocument.findNodeBefore(offset);
|
| 462 |
+
if (node && node.attributes && node.start < offset && (!node.endTagStart || node.endTagStart > offset)) {
|
| 463 |
+
const scanner = createScanner(document.getText(), node.start);
|
| 464 |
+
let token = scanner.scan();
|
| 465 |
+
while (token !== TokenType.EOS && scanner.getTokenEnd() <= offset) {
|
| 466 |
+
if (token === TokenType.AttributeName && scanner.getTokenEnd() === offset - 1) {
|
| 467 |
+
// Ensure the token is a valid standalone attribute name
|
| 468 |
+
token = scanner.scan(); // this should be the = just written
|
| 469 |
+
if (token !== TokenType.DelimiterAssign) {
|
| 470 |
+
return null;
|
| 471 |
+
}
|
| 472 |
+
token = scanner.scan();
|
| 473 |
+
// Any non-attribute valid tag
|
| 474 |
+
if (token === TokenType.Unknown || token === TokenType.AttributeValue) {
|
| 475 |
+
return null;
|
| 476 |
+
}
|
| 477 |
+
return value;
|
| 478 |
+
}
|
| 479 |
+
token = scanner.scan();
|
| 480 |
+
}
|
| 481 |
+
}
|
| 482 |
+
return null;
|
| 483 |
+
}
|
| 484 |
+
doTagComplete(document, position, htmlDocument) {
|
| 485 |
+
const offset = document.offsetAt(position);
|
| 486 |
+
if (offset <= 0) {
|
| 487 |
+
return null;
|
| 488 |
+
}
|
| 489 |
+
const char = document.getText().charAt(offset - 1);
|
| 490 |
+
if (char === '>') {
|
| 491 |
+
const node = htmlDocument.findNodeBefore(offset);
|
| 492 |
+
if (node && node.tag && node.start < offset && (!node.endTagStart || node.endTagStart > offset)) {
|
| 493 |
+
const voidElements = this.dataManager.getVoidElements(document.languageId);
|
| 494 |
+
if (!this.dataManager.isVoidElement(node.tag, voidElements)) {
|
| 495 |
+
const scanner = createScanner(document.getText(), node.start);
|
| 496 |
+
let token = scanner.scan();
|
| 497 |
+
while (token !== TokenType.EOS && scanner.getTokenEnd() <= offset) {
|
| 498 |
+
if (token === TokenType.StartTagClose && scanner.getTokenEnd() === offset) {
|
| 499 |
+
return `$0</${node.tag}>`;
|
| 500 |
+
}
|
| 501 |
+
token = scanner.scan();
|
| 502 |
+
}
|
| 503 |
+
}
|
| 504 |
+
}
|
| 505 |
+
}
|
| 506 |
+
else if (char === '/') {
|
| 507 |
+
let node = htmlDocument.findNodeBefore(offset);
|
| 508 |
+
while (node && node.closed && !(node.endTagStart && (node.endTagStart > offset))) {
|
| 509 |
+
node = node.parent;
|
| 510 |
+
}
|
| 511 |
+
if (node && node.tag) {
|
| 512 |
+
const scanner = createScanner(document.getText(), node.start);
|
| 513 |
+
let token = scanner.scan();
|
| 514 |
+
while (token !== TokenType.EOS && scanner.getTokenEnd() <= offset) {
|
| 515 |
+
if (token === TokenType.EndTagOpen && scanner.getTokenEnd() === offset) {
|
| 516 |
+
if (document.getText().charAt(offset) !== '>') {
|
| 517 |
+
return `${node.tag}>`;
|
| 518 |
+
}
|
| 519 |
+
else {
|
| 520 |
+
return node.tag;
|
| 521 |
+
}
|
| 522 |
+
}
|
| 523 |
+
token = scanner.scan();
|
| 524 |
+
}
|
| 525 |
+
}
|
| 526 |
+
}
|
| 527 |
+
return null;
|
| 528 |
+
}
|
| 529 |
+
convertCompletionList(list) {
|
| 530 |
+
if (!this.doesSupportMarkdown()) {
|
| 531 |
+
list.items.forEach(item => {
|
| 532 |
+
if (item.documentation && typeof item.documentation !== 'string') {
|
| 533 |
+
item.documentation = {
|
| 534 |
+
kind: 'plaintext',
|
| 535 |
+
value: item.documentation.value
|
| 536 |
+
};
|
| 537 |
+
}
|
| 538 |
+
});
|
| 539 |
+
}
|
| 540 |
+
return list;
|
| 541 |
+
}
|
| 542 |
+
doesSupportMarkdown() {
|
| 543 |
+
if (!isDefined(this.supportsMarkdown)) {
|
| 544 |
+
if (!isDefined(this.lsOptions.clientCapabilities)) {
|
| 545 |
+
this.supportsMarkdown = true;
|
| 546 |
+
return this.supportsMarkdown;
|
| 547 |
+
}
|
| 548 |
+
const documentationFormat = this.lsOptions.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;
|
| 549 |
+
this.supportsMarkdown = Array.isArray(documentationFormat) && documentationFormat.indexOf(MarkupKind.Markdown) !== -1;
|
| 550 |
+
}
|
| 551 |
+
return this.supportsMarkdown;
|
| 552 |
+
}
|
| 553 |
+
}
|
| 554 |
+
function isQuote(s) {
|
| 555 |
+
return /^["']*$/.test(s);
|
| 556 |
+
}
|
| 557 |
+
function isWhiteSpace(s) {
|
| 558 |
+
return /^\s*$/.test(s);
|
| 559 |
+
}
|
| 560 |
+
function isFollowedBy(s, offset, intialState, expectedToken) {
|
| 561 |
+
const scanner = createScanner(s, offset, intialState);
|
| 562 |
+
let token = scanner.scan();
|
| 563 |
+
while (token === TokenType.Whitespace) {
|
| 564 |
+
token = scanner.scan();
|
| 565 |
+
}
|
| 566 |
+
return token === expectedToken;
|
| 567 |
+
}
|
| 568 |
+
function getWordStart(s, offset, limit) {
|
| 569 |
+
while (offset > limit && !isWhiteSpace(s[offset - 1])) {
|
| 570 |
+
offset--;
|
| 571 |
+
}
|
| 572 |
+
return offset;
|
| 573 |
+
}
|
| 574 |
+
function getWordEnd(s, offset, limit) {
|
| 575 |
+
while (offset < limit && !isWhiteSpace(s[offset])) {
|
| 576 |
+
offset++;
|
| 577 |
+
}
|
| 578 |
+
return offset;
|
| 579 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlFolding.js
CHANGED
|
@@ -1,3 +1,174 @@
|
|
| 1 |
-
|
| 2 |
-
|
|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
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
import { TokenType, FoldingRangeKind } from '../htmlLanguageTypes';
|
| 6 |
+
import { createScanner } from '../parser/htmlScanner';
|
| 7 |
+
export class HTMLFolding {
|
| 8 |
+
constructor(dataManager) {
|
| 9 |
+
this.dataManager = dataManager;
|
| 10 |
+
}
|
| 11 |
+
limitRanges(ranges, rangeLimit) {
|
| 12 |
+
ranges = ranges.sort((r1, r2) => {
|
| 13 |
+
let diff = r1.startLine - r2.startLine;
|
| 14 |
+
if (diff === 0) {
|
| 15 |
+
diff = r1.endLine - r2.endLine;
|
| 16 |
+
}
|
| 17 |
+
return diff;
|
| 18 |
+
});
|
| 19 |
+
// compute each range's nesting level in 'nestingLevels'.
|
| 20 |
+
// count the number of ranges for each level in 'nestingLevelCounts'
|
| 21 |
+
let top = void 0;
|
| 22 |
+
const previous = [];
|
| 23 |
+
const nestingLevels = [];
|
| 24 |
+
const nestingLevelCounts = [];
|
| 25 |
+
const setNestingLevel = (index, level) => {
|
| 26 |
+
nestingLevels[index] = level;
|
| 27 |
+
if (level < 30) {
|
| 28 |
+
nestingLevelCounts[level] = (nestingLevelCounts[level] || 0) + 1;
|
| 29 |
+
}
|
| 30 |
+
};
|
| 31 |
+
// compute nesting levels and sanitize
|
| 32 |
+
for (let i = 0; i < ranges.length; i++) {
|
| 33 |
+
const entry = ranges[i];
|
| 34 |
+
if (!top) {
|
| 35 |
+
top = entry;
|
| 36 |
+
setNestingLevel(i, 0);
|
| 37 |
+
}
|
| 38 |
+
else {
|
| 39 |
+
if (entry.startLine > top.startLine) {
|
| 40 |
+
if (entry.endLine <= top.endLine) {
|
| 41 |
+
previous.push(top);
|
| 42 |
+
top = entry;
|
| 43 |
+
setNestingLevel(i, previous.length);
|
| 44 |
+
}
|
| 45 |
+
else if (entry.startLine > top.endLine) {
|
| 46 |
+
do {
|
| 47 |
+
top = previous.pop();
|
| 48 |
+
} while (top && entry.startLine > top.endLine);
|
| 49 |
+
if (top) {
|
| 50 |
+
previous.push(top);
|
| 51 |
+
}
|
| 52 |
+
top = entry;
|
| 53 |
+
setNestingLevel(i, previous.length);
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
let entries = 0;
|
| 59 |
+
let maxLevel = 0;
|
| 60 |
+
for (let i = 0; i < nestingLevelCounts.length; i++) {
|
| 61 |
+
const n = nestingLevelCounts[i];
|
| 62 |
+
if (n) {
|
| 63 |
+
if (n + entries > rangeLimit) {
|
| 64 |
+
maxLevel = i;
|
| 65 |
+
break;
|
| 66 |
+
}
|
| 67 |
+
entries += n;
|
| 68 |
+
}
|
| 69 |
+
}
|
| 70 |
+
const result = [];
|
| 71 |
+
for (let i = 0; i < ranges.length; i++) {
|
| 72 |
+
const level = nestingLevels[i];
|
| 73 |
+
if (typeof level === 'number') {
|
| 74 |
+
if (level < maxLevel || (level === maxLevel && entries++ < rangeLimit)) {
|
| 75 |
+
result.push(ranges[i]);
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
return result;
|
| 80 |
+
}
|
| 81 |
+
getFoldingRanges(document, context) {
|
| 82 |
+
const scanner = createScanner(document.getText());
|
| 83 |
+
let token = scanner.scan();
|
| 84 |
+
const ranges = [];
|
| 85 |
+
const stack = [];
|
| 86 |
+
let lastTagName = null;
|
| 87 |
+
let prevStart = -1;
|
| 88 |
+
let voidElements;
|
| 89 |
+
function addRange(range) {
|
| 90 |
+
ranges.push(range);
|
| 91 |
+
prevStart = range.startLine;
|
| 92 |
+
}
|
| 93 |
+
while (token !== TokenType.EOS) {
|
| 94 |
+
switch (token) {
|
| 95 |
+
case TokenType.StartTag: {
|
| 96 |
+
const tagName = scanner.getTokenText();
|
| 97 |
+
const startLine = document.positionAt(scanner.getTokenOffset()).line;
|
| 98 |
+
stack.push({ startLine, tagName });
|
| 99 |
+
lastTagName = tagName;
|
| 100 |
+
break;
|
| 101 |
+
}
|
| 102 |
+
case TokenType.EndTag: {
|
| 103 |
+
lastTagName = scanner.getTokenText();
|
| 104 |
+
break;
|
| 105 |
+
}
|
| 106 |
+
case TokenType.StartTagClose:
|
| 107 |
+
if (!lastTagName) {
|
| 108 |
+
break;
|
| 109 |
+
}
|
| 110 |
+
voidElements ?? (voidElements = this.dataManager.getVoidElements(document.languageId));
|
| 111 |
+
if (!this.dataManager.isVoidElement(lastTagName, voidElements)) {
|
| 112 |
+
break;
|
| 113 |
+
}
|
| 114 |
+
// fallthrough
|
| 115 |
+
case TokenType.EndTagClose:
|
| 116 |
+
case TokenType.StartTagSelfClose: {
|
| 117 |
+
let i = stack.length - 1;
|
| 118 |
+
while (i >= 0 && stack[i].tagName !== lastTagName) {
|
| 119 |
+
i--;
|
| 120 |
+
}
|
| 121 |
+
if (i >= 0) {
|
| 122 |
+
const stackElement = stack[i];
|
| 123 |
+
stack.length = i;
|
| 124 |
+
const line = document.positionAt(scanner.getTokenOffset()).line;
|
| 125 |
+
const startLine = stackElement.startLine;
|
| 126 |
+
const endLine = line - 1;
|
| 127 |
+
if (endLine > startLine && prevStart !== startLine) {
|
| 128 |
+
addRange({ startLine, endLine });
|
| 129 |
+
}
|
| 130 |
+
}
|
| 131 |
+
break;
|
| 132 |
+
}
|
| 133 |
+
case TokenType.Comment: {
|
| 134 |
+
let startLine = document.positionAt(scanner.getTokenOffset()).line;
|
| 135 |
+
const text = scanner.getTokenText();
|
| 136 |
+
const m = text.match(/^\s*#(region\b)|(endregion\b)/);
|
| 137 |
+
if (m) {
|
| 138 |
+
if (m[1]) { // start pattern match
|
| 139 |
+
stack.push({ startLine, tagName: '' }); // empty tagName marks region
|
| 140 |
+
}
|
| 141 |
+
else {
|
| 142 |
+
let i = stack.length - 1;
|
| 143 |
+
while (i >= 0 && stack[i].tagName.length) {
|
| 144 |
+
i--;
|
| 145 |
+
}
|
| 146 |
+
if (i >= 0) {
|
| 147 |
+
const stackElement = stack[i];
|
| 148 |
+
stack.length = i;
|
| 149 |
+
const endLine = startLine;
|
| 150 |
+
startLine = stackElement.startLine;
|
| 151 |
+
if (endLine > startLine && prevStart !== startLine) {
|
| 152 |
+
addRange({ startLine, endLine, kind: FoldingRangeKind.Region });
|
| 153 |
+
}
|
| 154 |
+
}
|
| 155 |
+
}
|
| 156 |
+
}
|
| 157 |
+
else {
|
| 158 |
+
const endLine = document.positionAt(scanner.getTokenOffset() + scanner.getTokenLength()).line;
|
| 159 |
+
if (startLine < endLine) {
|
| 160 |
+
addRange({ startLine, endLine, kind: FoldingRangeKind.Comment });
|
| 161 |
+
}
|
| 162 |
+
}
|
| 163 |
+
break;
|
| 164 |
+
}
|
| 165 |
+
}
|
| 166 |
+
token = scanner.scan();
|
| 167 |
+
}
|
| 168 |
+
const rangeLimit = context && context.rangeLimit || Number.MAX_VALUE;
|
| 169 |
+
if (ranges.length > rangeLimit) {
|
| 170 |
+
return this.limitRanges(ranges, rangeLimit);
|
| 171 |
+
}
|
| 172 |
+
return ranges;
|
| 173 |
+
}
|
| 174 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlFormatter.js
CHANGED
|
@@ -1,3 +1,149 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
import { Range, Position } from '../htmlLanguageTypes';
|
| 6 |
+
import { html_beautify } from '../beautify/beautify-html';
|
| 7 |
+
import { repeat } from '../utils/strings';
|
| 8 |
+
export function format(document, range, options) {
|
| 9 |
+
let value = document.getText();
|
| 10 |
+
let includesEnd = true;
|
| 11 |
+
let initialIndentLevel = 0;
|
| 12 |
+
const tabSize = options.tabSize || 4;
|
| 13 |
+
if (range) {
|
| 14 |
+
let startOffset = document.offsetAt(range.start);
|
| 15 |
+
// include all leading whitespace iff at the beginning of the line
|
| 16 |
+
let extendedStart = startOffset;
|
| 17 |
+
while (extendedStart > 0 && isWhitespace(value, extendedStart - 1)) {
|
| 18 |
+
extendedStart--;
|
| 19 |
+
}
|
| 20 |
+
if (extendedStart === 0 || isEOL(value, extendedStart - 1)) {
|
| 21 |
+
startOffset = extendedStart;
|
| 22 |
+
}
|
| 23 |
+
else {
|
| 24 |
+
// else keep at least one whitespace
|
| 25 |
+
if (extendedStart < startOffset) {
|
| 26 |
+
startOffset = extendedStart + 1;
|
| 27 |
+
}
|
| 28 |
+
}
|
| 29 |
+
// include all following whitespace until the end of the line
|
| 30 |
+
let endOffset = document.offsetAt(range.end);
|
| 31 |
+
let extendedEnd = endOffset;
|
| 32 |
+
while (extendedEnd < value.length && isWhitespace(value, extendedEnd)) {
|
| 33 |
+
extendedEnd++;
|
| 34 |
+
}
|
| 35 |
+
if (extendedEnd === value.length || isEOL(value, extendedEnd)) {
|
| 36 |
+
endOffset = extendedEnd;
|
| 37 |
+
}
|
| 38 |
+
range = Range.create(document.positionAt(startOffset), document.positionAt(endOffset));
|
| 39 |
+
// Do not modify if substring starts in inside an element
|
| 40 |
+
// Ending inside an element is fine as it doesn't cause formatting errors
|
| 41 |
+
const firstHalf = value.substring(0, startOffset);
|
| 42 |
+
if (new RegExp(/.*[<][^>]*$/).test(firstHalf)) {
|
| 43 |
+
//return without modification
|
| 44 |
+
value = value.substring(startOffset, endOffset);
|
| 45 |
+
return [{
|
| 46 |
+
range: range,
|
| 47 |
+
newText: value
|
| 48 |
+
}];
|
| 49 |
+
}
|
| 50 |
+
includesEnd = endOffset === value.length;
|
| 51 |
+
value = value.substring(startOffset, endOffset);
|
| 52 |
+
if (startOffset !== 0) {
|
| 53 |
+
const startOfLineOffset = document.offsetAt(Position.create(range.start.line, 0));
|
| 54 |
+
initialIndentLevel = computeIndentLevel(document.getText(), startOfLineOffset, options);
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
else {
|
| 58 |
+
range = Range.create(Position.create(0, 0), document.positionAt(value.length));
|
| 59 |
+
}
|
| 60 |
+
const htmlOptions = {
|
| 61 |
+
indent_size: tabSize,
|
| 62 |
+
indent_char: options.insertSpaces ? ' ' : '\t',
|
| 63 |
+
indent_empty_lines: getFormatOption(options, 'indentEmptyLines', false),
|
| 64 |
+
wrap_line_length: getFormatOption(options, 'wrapLineLength', 120),
|
| 65 |
+
unformatted: getTagsFormatOption(options, 'unformatted', void 0),
|
| 66 |
+
content_unformatted: getTagsFormatOption(options, 'contentUnformatted', void 0),
|
| 67 |
+
indent_inner_html: getFormatOption(options, 'indentInnerHtml', false),
|
| 68 |
+
preserve_newlines: getFormatOption(options, 'preserveNewLines', true),
|
| 69 |
+
max_preserve_newlines: getFormatOption(options, 'maxPreserveNewLines', 32786),
|
| 70 |
+
indent_handlebars: getFormatOption(options, 'indentHandlebars', false),
|
| 71 |
+
end_with_newline: includesEnd && getFormatOption(options, 'endWithNewline', false),
|
| 72 |
+
extra_liners: getTagsFormatOption(options, 'extraLiners', void 0),
|
| 73 |
+
wrap_attributes: getFormatOption(options, 'wrapAttributes', 'auto'),
|
| 74 |
+
wrap_attributes_indent_size: getFormatOption(options, 'wrapAttributesIndentSize', void 0),
|
| 75 |
+
eol: '\n',
|
| 76 |
+
indent_scripts: getFormatOption(options, 'indentScripts', 'normal'),
|
| 77 |
+
templating: getTemplatingFormatOption(options, 'all'),
|
| 78 |
+
unformatted_content_delimiter: getFormatOption(options, 'unformattedContentDelimiter', ''),
|
| 79 |
+
};
|
| 80 |
+
let result = html_beautify(trimLeft(value), htmlOptions);
|
| 81 |
+
if (initialIndentLevel > 0) {
|
| 82 |
+
const indent = options.insertSpaces ? repeat(' ', tabSize * initialIndentLevel) : repeat('\t', initialIndentLevel);
|
| 83 |
+
result = result.split('\n').join('\n' + indent);
|
| 84 |
+
if (range.start.character === 0) {
|
| 85 |
+
result = indent + result; // keep the indent
|
| 86 |
+
}
|
| 87 |
+
}
|
| 88 |
+
return [{
|
| 89 |
+
range: range,
|
| 90 |
+
newText: result
|
| 91 |
+
}];
|
| 92 |
+
}
|
| 93 |
+
function trimLeft(str) {
|
| 94 |
+
return str.replace(/^\s+/, '');
|
| 95 |
+
}
|
| 96 |
+
function getFormatOption(options, key, dflt) {
|
| 97 |
+
if (options && options.hasOwnProperty(key)) {
|
| 98 |
+
const value = options[key];
|
| 99 |
+
if (value !== null) {
|
| 100 |
+
return value;
|
| 101 |
+
}
|
| 102 |
+
}
|
| 103 |
+
return dflt;
|
| 104 |
+
}
|
| 105 |
+
function getTagsFormatOption(options, key, dflt) {
|
| 106 |
+
const list = getFormatOption(options, key, null);
|
| 107 |
+
if (typeof list === 'string') {
|
| 108 |
+
if (list.length > 0) {
|
| 109 |
+
return list.split(',').map(t => t.trim().toLowerCase());
|
| 110 |
+
}
|
| 111 |
+
return [];
|
| 112 |
+
}
|
| 113 |
+
return dflt;
|
| 114 |
+
}
|
| 115 |
+
function getTemplatingFormatOption(options, dflt) {
|
| 116 |
+
const value = getFormatOption(options, 'templating', dflt);
|
| 117 |
+
if (value === true) {
|
| 118 |
+
return ['auto'];
|
| 119 |
+
}
|
| 120 |
+
if (value === false || value === dflt || Array.isArray(value) === false) {
|
| 121 |
+
return ['none'];
|
| 122 |
+
}
|
| 123 |
+
return value;
|
| 124 |
+
}
|
| 125 |
+
function computeIndentLevel(content, offset, options) {
|
| 126 |
+
let i = offset;
|
| 127 |
+
let nChars = 0;
|
| 128 |
+
const tabSize = options.tabSize || 4;
|
| 129 |
+
while (i < content.length) {
|
| 130 |
+
const ch = content.charAt(i);
|
| 131 |
+
if (ch === ' ') {
|
| 132 |
+
nChars++;
|
| 133 |
+
}
|
| 134 |
+
else if (ch === '\t') {
|
| 135 |
+
nChars += tabSize;
|
| 136 |
+
}
|
| 137 |
+
else {
|
| 138 |
+
break;
|
| 139 |
+
}
|
| 140 |
+
i++;
|
| 141 |
+
}
|
| 142 |
+
return Math.floor(nChars / tabSize);
|
| 143 |
+
}
|
| 144 |
+
function isEOL(text, offset) {
|
| 145 |
+
return '\r\n'.indexOf(text.charAt(offset)) !== -1;
|
| 146 |
+
}
|
| 147 |
+
function isWhitespace(text, offset) {
|
| 148 |
+
return ' \t'.indexOf(text.charAt(offset)) !== -1;
|
| 149 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlHighlighting.js
CHANGED
|
@@ -1,3 +1,42 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
import { createScanner } from '../parser/htmlScanner';
|
| 6 |
+
import { TokenType, DocumentHighlightKind } from '../htmlLanguageTypes';
|
| 7 |
+
export function findDocumentHighlights(document, position, htmlDocument) {
|
| 8 |
+
const offset = document.offsetAt(position);
|
| 9 |
+
const node = htmlDocument.findNodeAt(offset);
|
| 10 |
+
if (!node.tag) {
|
| 11 |
+
return [];
|
| 12 |
+
}
|
| 13 |
+
const result = [];
|
| 14 |
+
const startTagRange = getTagNameRange(TokenType.StartTag, document, node.start);
|
| 15 |
+
const endTagRange = typeof node.endTagStart === 'number' && getTagNameRange(TokenType.EndTag, document, node.endTagStart);
|
| 16 |
+
if (startTagRange && covers(startTagRange, position) || endTagRange && covers(endTagRange, position)) {
|
| 17 |
+
if (startTagRange) {
|
| 18 |
+
result.push({ kind: DocumentHighlightKind.Read, range: startTagRange });
|
| 19 |
+
}
|
| 20 |
+
if (endTagRange) {
|
| 21 |
+
result.push({ kind: DocumentHighlightKind.Read, range: endTagRange });
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
return result;
|
| 25 |
+
}
|
| 26 |
+
function isBeforeOrEqual(pos1, pos2) {
|
| 27 |
+
return pos1.line < pos2.line || (pos1.line === pos2.line && pos1.character <= pos2.character);
|
| 28 |
+
}
|
| 29 |
+
function covers(range, position) {
|
| 30 |
+
return isBeforeOrEqual(range.start, position) && isBeforeOrEqual(position, range.end);
|
| 31 |
+
}
|
| 32 |
+
function getTagNameRange(tokenType, document, startOffset) {
|
| 33 |
+
const scanner = createScanner(document.getText(), startOffset);
|
| 34 |
+
let token = scanner.scan();
|
| 35 |
+
while (token !== TokenType.EOS && token !== tokenType) {
|
| 36 |
+
token = scanner.scan();
|
| 37 |
+
}
|
| 38 |
+
if (token !== TokenType.EOS) {
|
| 39 |
+
return { start: document.positionAt(scanner.getTokenOffset()), end: document.positionAt(scanner.getTokenEnd()) };
|
| 40 |
+
}
|
| 41 |
+
return null;
|
| 42 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlHover.js
CHANGED
|
@@ -1,3 +1,265 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
import { createScanner } from '../parser/htmlScanner';
|
| 6 |
+
import { TokenType, Range, Position, MarkupKind } from '../htmlLanguageTypes';
|
| 7 |
+
import { isDefined } from '../utils/object';
|
| 8 |
+
import { generateDocumentation } from '../languageFacts/dataProvider';
|
| 9 |
+
import { entities } from '../parser/htmlEntities';
|
| 10 |
+
import { isLetterOrDigit } from '../utils/strings';
|
| 11 |
+
import * as l10n from '@vscode/l10n';
|
| 12 |
+
export class HTMLHover {
|
| 13 |
+
constructor(lsOptions, dataManager) {
|
| 14 |
+
this.lsOptions = lsOptions;
|
| 15 |
+
this.dataManager = dataManager;
|
| 16 |
+
}
|
| 17 |
+
doHover(document, position, htmlDocument, options) {
|
| 18 |
+
const convertContents = this.convertContents.bind(this);
|
| 19 |
+
const doesSupportMarkdown = this.doesSupportMarkdown();
|
| 20 |
+
const offset = document.offsetAt(position);
|
| 21 |
+
const node = htmlDocument.findNodeAt(offset);
|
| 22 |
+
const text = document.getText();
|
| 23 |
+
if (!node || !node.tag) {
|
| 24 |
+
return null;
|
| 25 |
+
}
|
| 26 |
+
const dataProviders = this.dataManager.getDataProviders().filter(p => p.isApplicable(document.languageId));
|
| 27 |
+
function getTagHover(currTag, range, open) {
|
| 28 |
+
for (const provider of dataProviders) {
|
| 29 |
+
let hover = null;
|
| 30 |
+
provider.provideTags().forEach(tag => {
|
| 31 |
+
if (tag.name.toLowerCase() === currTag.toLowerCase()) {
|
| 32 |
+
let markupContent = generateDocumentation(tag, options, doesSupportMarkdown);
|
| 33 |
+
if (!markupContent) {
|
| 34 |
+
markupContent = {
|
| 35 |
+
kind: doesSupportMarkdown ? 'markdown' : 'plaintext',
|
| 36 |
+
value: ''
|
| 37 |
+
};
|
| 38 |
+
}
|
| 39 |
+
hover = { contents: markupContent, range };
|
| 40 |
+
}
|
| 41 |
+
});
|
| 42 |
+
if (hover) {
|
| 43 |
+
hover.contents = convertContents(hover.contents);
|
| 44 |
+
return hover;
|
| 45 |
+
}
|
| 46 |
+
}
|
| 47 |
+
return null;
|
| 48 |
+
}
|
| 49 |
+
function getAttrHover(currTag, currAttr, range) {
|
| 50 |
+
for (const provider of dataProviders) {
|
| 51 |
+
let hover = null;
|
| 52 |
+
provider.provideAttributes(currTag).forEach(attr => {
|
| 53 |
+
if (currAttr === attr.name && attr.description) {
|
| 54 |
+
const contentsDoc = generateDocumentation(attr, options, doesSupportMarkdown);
|
| 55 |
+
if (contentsDoc) {
|
| 56 |
+
hover = { contents: contentsDoc, range };
|
| 57 |
+
}
|
| 58 |
+
else {
|
| 59 |
+
hover = null;
|
| 60 |
+
}
|
| 61 |
+
}
|
| 62 |
+
});
|
| 63 |
+
if (hover) {
|
| 64 |
+
hover.contents = convertContents(hover.contents);
|
| 65 |
+
return hover;
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
return null;
|
| 69 |
+
}
|
| 70 |
+
function getAttrValueHover(currTag, currAttr, currAttrValue, range) {
|
| 71 |
+
for (const provider of dataProviders) {
|
| 72 |
+
let hover = null;
|
| 73 |
+
provider.provideValues(currTag, currAttr).forEach(attrValue => {
|
| 74 |
+
if (currAttrValue === attrValue.name && attrValue.description) {
|
| 75 |
+
const contentsDoc = generateDocumentation(attrValue, options, doesSupportMarkdown);
|
| 76 |
+
if (contentsDoc) {
|
| 77 |
+
hover = { contents: contentsDoc, range };
|
| 78 |
+
}
|
| 79 |
+
else {
|
| 80 |
+
hover = null;
|
| 81 |
+
}
|
| 82 |
+
}
|
| 83 |
+
});
|
| 84 |
+
if (hover) {
|
| 85 |
+
hover.contents = convertContents(hover.contents);
|
| 86 |
+
return hover;
|
| 87 |
+
}
|
| 88 |
+
}
|
| 89 |
+
return null;
|
| 90 |
+
}
|
| 91 |
+
function getEntityHover(text, range) {
|
| 92 |
+
let currEntity = filterEntity(text);
|
| 93 |
+
for (const entity in entities) {
|
| 94 |
+
let hover = null;
|
| 95 |
+
const label = '&' + entity;
|
| 96 |
+
if (currEntity === label) {
|
| 97 |
+
let code = entities[entity].charCodeAt(0).toString(16).toUpperCase();
|
| 98 |
+
let hex = 'U+';
|
| 99 |
+
if (code.length < 4) {
|
| 100 |
+
const zeroes = 4 - code.length;
|
| 101 |
+
let k = 0;
|
| 102 |
+
while (k < zeroes) {
|
| 103 |
+
hex += '0';
|
| 104 |
+
k += 1;
|
| 105 |
+
}
|
| 106 |
+
}
|
| 107 |
+
hex += code;
|
| 108 |
+
const contentsDoc = l10n.t('Character entity representing \'{0}\', unicode equivalent \'{1}\'', entities[entity], hex);
|
| 109 |
+
if (contentsDoc) {
|
| 110 |
+
hover = { contents: contentsDoc, range };
|
| 111 |
+
}
|
| 112 |
+
else {
|
| 113 |
+
hover = null;
|
| 114 |
+
}
|
| 115 |
+
}
|
| 116 |
+
if (hover) {
|
| 117 |
+
hover.contents = convertContents(hover.contents);
|
| 118 |
+
return hover;
|
| 119 |
+
}
|
| 120 |
+
}
|
| 121 |
+
return null;
|
| 122 |
+
}
|
| 123 |
+
function getTagNameRange(tokenType, startOffset) {
|
| 124 |
+
const scanner = createScanner(document.getText(), startOffset);
|
| 125 |
+
let token = scanner.scan();
|
| 126 |
+
while (token !== TokenType.EOS && (scanner.getTokenEnd() < offset || scanner.getTokenEnd() === offset && token !== tokenType)) {
|
| 127 |
+
token = scanner.scan();
|
| 128 |
+
}
|
| 129 |
+
if (token === tokenType && offset <= scanner.getTokenEnd()) {
|
| 130 |
+
return { start: document.positionAt(scanner.getTokenOffset()), end: document.positionAt(scanner.getTokenEnd()) };
|
| 131 |
+
}
|
| 132 |
+
return null;
|
| 133 |
+
}
|
| 134 |
+
function getEntityRange() {
|
| 135 |
+
let k = offset - 1;
|
| 136 |
+
let characterStart = position.character;
|
| 137 |
+
while (k >= 0 && isLetterOrDigit(text, k)) {
|
| 138 |
+
k--;
|
| 139 |
+
characterStart--;
|
| 140 |
+
}
|
| 141 |
+
let n = k + 1;
|
| 142 |
+
let characterEnd = characterStart;
|
| 143 |
+
while (isLetterOrDigit(text, n)) {
|
| 144 |
+
n++;
|
| 145 |
+
characterEnd++;
|
| 146 |
+
}
|
| 147 |
+
if (k >= 0 && text[k] === '&') {
|
| 148 |
+
let range = null;
|
| 149 |
+
if (text[n] === ';') {
|
| 150 |
+
range = Range.create(Position.create(position.line, characterStart), Position.create(position.line, characterEnd + 1));
|
| 151 |
+
}
|
| 152 |
+
else {
|
| 153 |
+
range = Range.create(Position.create(position.line, characterStart), Position.create(position.line, characterEnd));
|
| 154 |
+
}
|
| 155 |
+
return range;
|
| 156 |
+
}
|
| 157 |
+
return null;
|
| 158 |
+
}
|
| 159 |
+
function filterEntity(text) {
|
| 160 |
+
let k = offset - 1;
|
| 161 |
+
let newText = '&';
|
| 162 |
+
while (k >= 0 && isLetterOrDigit(text, k)) {
|
| 163 |
+
k--;
|
| 164 |
+
}
|
| 165 |
+
k = k + 1;
|
| 166 |
+
while (isLetterOrDigit(text, k)) {
|
| 167 |
+
newText += text[k];
|
| 168 |
+
k += 1;
|
| 169 |
+
}
|
| 170 |
+
newText += ';';
|
| 171 |
+
return newText;
|
| 172 |
+
}
|
| 173 |
+
if (node.endTagStart && offset >= node.endTagStart) {
|
| 174 |
+
const tagRange = getTagNameRange(TokenType.EndTag, node.endTagStart);
|
| 175 |
+
if (tagRange) {
|
| 176 |
+
return getTagHover(node.tag, tagRange, false);
|
| 177 |
+
}
|
| 178 |
+
return null;
|
| 179 |
+
}
|
| 180 |
+
const tagRange = getTagNameRange(TokenType.StartTag, node.start);
|
| 181 |
+
if (tagRange) {
|
| 182 |
+
return getTagHover(node.tag, tagRange, true);
|
| 183 |
+
}
|
| 184 |
+
const attrRange = getTagNameRange(TokenType.AttributeName, node.start);
|
| 185 |
+
if (attrRange) {
|
| 186 |
+
const tag = node.tag;
|
| 187 |
+
const attr = document.getText(attrRange);
|
| 188 |
+
return getAttrHover(tag, attr, attrRange);
|
| 189 |
+
}
|
| 190 |
+
const entityRange = getEntityRange();
|
| 191 |
+
if (entityRange) {
|
| 192 |
+
return getEntityHover(text, entityRange);
|
| 193 |
+
}
|
| 194 |
+
function scanAttrAndAttrValue(nodeStart, attrValueStart) {
|
| 195 |
+
const scanner = createScanner(document.getText(), nodeStart);
|
| 196 |
+
let token = scanner.scan();
|
| 197 |
+
let prevAttr = undefined;
|
| 198 |
+
while (token !== TokenType.EOS && (scanner.getTokenEnd() <= attrValueStart)) {
|
| 199 |
+
token = scanner.scan();
|
| 200 |
+
if (token === TokenType.AttributeName) {
|
| 201 |
+
prevAttr = scanner.getTokenText();
|
| 202 |
+
}
|
| 203 |
+
}
|
| 204 |
+
return prevAttr;
|
| 205 |
+
}
|
| 206 |
+
const attrValueRange = getTagNameRange(TokenType.AttributeValue, node.start);
|
| 207 |
+
if (attrValueRange) {
|
| 208 |
+
const tag = node.tag;
|
| 209 |
+
const attrValue = trimQuotes(document.getText(attrValueRange));
|
| 210 |
+
const matchAttr = scanAttrAndAttrValue(node.start, document.offsetAt(attrValueRange.start));
|
| 211 |
+
if (matchAttr) {
|
| 212 |
+
return getAttrValueHover(tag, matchAttr, attrValue, attrValueRange);
|
| 213 |
+
}
|
| 214 |
+
}
|
| 215 |
+
return null;
|
| 216 |
+
}
|
| 217 |
+
convertContents(contents) {
|
| 218 |
+
if (!this.doesSupportMarkdown()) {
|
| 219 |
+
if (typeof contents === 'string') {
|
| 220 |
+
return contents;
|
| 221 |
+
}
|
| 222 |
+
// MarkupContent
|
| 223 |
+
else if ('kind' in contents) {
|
| 224 |
+
return {
|
| 225 |
+
kind: 'plaintext',
|
| 226 |
+
value: contents.value
|
| 227 |
+
};
|
| 228 |
+
}
|
| 229 |
+
// MarkedString[]
|
| 230 |
+
else if (Array.isArray(contents)) {
|
| 231 |
+
contents.map(c => {
|
| 232 |
+
return typeof c === 'string' ? c : c.value;
|
| 233 |
+
});
|
| 234 |
+
}
|
| 235 |
+
// MarkedString
|
| 236 |
+
else {
|
| 237 |
+
return contents.value;
|
| 238 |
+
}
|
| 239 |
+
}
|
| 240 |
+
return contents;
|
| 241 |
+
}
|
| 242 |
+
doesSupportMarkdown() {
|
| 243 |
+
if (!isDefined(this.supportsMarkdown)) {
|
| 244 |
+
if (!isDefined(this.lsOptions.clientCapabilities)) {
|
| 245 |
+
this.supportsMarkdown = true;
|
| 246 |
+
return this.supportsMarkdown;
|
| 247 |
+
}
|
| 248 |
+
const contentFormat = this.lsOptions.clientCapabilities?.textDocument?.hover?.contentFormat;
|
| 249 |
+
this.supportsMarkdown = Array.isArray(contentFormat) && contentFormat.indexOf(MarkupKind.Markdown) !== -1;
|
| 250 |
+
}
|
| 251 |
+
return this.supportsMarkdown;
|
| 252 |
+
}
|
| 253 |
+
}
|
| 254 |
+
function trimQuotes(s) {
|
| 255 |
+
if (s.length <= 1) {
|
| 256 |
+
return s.replace(/['"]/, ''); // CodeQL [SM02383] False positive: The string length is at most one, so we don't need the global flag.
|
| 257 |
+
}
|
| 258 |
+
if (s[0] === `'` || s[0] === `"`) {
|
| 259 |
+
s = s.slice(1);
|
| 260 |
+
}
|
| 261 |
+
if (s[s.length - 1] === `'` || s[s.length - 1] === `"`) {
|
| 262 |
+
s = s.slice(0, -1);
|
| 263 |
+
}
|
| 264 |
+
return s;
|
| 265 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlLinkedEditing.js
CHANGED
|
@@ -1,3 +1,24 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
import { Range } from '../htmlLanguageTypes';
|
| 6 |
+
export function findLinkedEditingRanges(document, position, htmlDocument) {
|
| 7 |
+
const offset = document.offsetAt(position);
|
| 8 |
+
const node = htmlDocument.findNodeAt(offset);
|
| 9 |
+
const tagLength = node.tag ? node.tag.length : 0;
|
| 10 |
+
if (!node.endTagStart) {
|
| 11 |
+
return null;
|
| 12 |
+
}
|
| 13 |
+
if (
|
| 14 |
+
// Within open tag, compute close tag
|
| 15 |
+
(node.start + '<'.length <= offset && offset <= node.start + '<'.length + tagLength) ||
|
| 16 |
+
// Within closing tag, compute open tag
|
| 17 |
+
node.endTagStart + '</'.length <= offset && offset <= node.endTagStart + '</'.length + tagLength) {
|
| 18 |
+
return [
|
| 19 |
+
Range.create(document.positionAt(node.start + '<'.length), document.positionAt(node.start + '<'.length + tagLength)),
|
| 20 |
+
Range.create(document.positionAt(node.endTagStart + '</'.length), document.positionAt(node.endTagStart + '</'.length + tagLength))
|
| 21 |
+
];
|
| 22 |
+
}
|
| 23 |
+
return null;
|
| 24 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlLinks.js
CHANGED
|
@@ -1,3 +1,157 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
import { createScanner } from '../parser/htmlScanner';
|
| 6 |
+
import * as strings from '../utils/strings';
|
| 7 |
+
import { URI as Uri } from 'vscode-uri';
|
| 8 |
+
import { TokenType, Range } from '../htmlLanguageTypes';
|
| 9 |
+
function normalizeRef(url) {
|
| 10 |
+
const first = url[0];
|
| 11 |
+
const last = url[url.length - 1];
|
| 12 |
+
if (first === last && (first === '\'' || first === '\"')) {
|
| 13 |
+
url = url.substring(1, url.length - 1);
|
| 14 |
+
}
|
| 15 |
+
return url;
|
| 16 |
+
}
|
| 17 |
+
function validateRef(url, languageId) {
|
| 18 |
+
if (!url.length) {
|
| 19 |
+
return false;
|
| 20 |
+
}
|
| 21 |
+
if (languageId === 'handlebars' && /{{|}}/.test(url)) {
|
| 22 |
+
return false;
|
| 23 |
+
}
|
| 24 |
+
return /\b(w[\w\d+.-]*:\/\/)?[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|\/?))/.test(url);
|
| 25 |
+
}
|
| 26 |
+
function getWorkspaceUrl(documentUri, tokenContent, documentContext, base) {
|
| 27 |
+
if (/^\s*javascript\:/i.test(tokenContent) || /[\n\r]/.test(tokenContent)) {
|
| 28 |
+
return undefined;
|
| 29 |
+
}
|
| 30 |
+
tokenContent = tokenContent.replace(/^\s*/g, '');
|
| 31 |
+
const match = tokenContent.match(/^(\w[\w\d+.-]*):/);
|
| 32 |
+
if (match) {
|
| 33 |
+
// Absolute link that needs no treatment
|
| 34 |
+
const schema = match[1].toLowerCase();
|
| 35 |
+
if (schema === 'http' || schema === 'https' || schema === 'file') {
|
| 36 |
+
return tokenContent;
|
| 37 |
+
}
|
| 38 |
+
return undefined;
|
| 39 |
+
}
|
| 40 |
+
if (/^\#/i.test(tokenContent)) {
|
| 41 |
+
return documentUri + tokenContent;
|
| 42 |
+
}
|
| 43 |
+
if (/^\/\//i.test(tokenContent)) {
|
| 44 |
+
// Absolute link (that does not name the protocol)
|
| 45 |
+
const pickedScheme = strings.startsWith(documentUri, 'https://') ? 'https' : 'http';
|
| 46 |
+
return pickedScheme + ':' + tokenContent.replace(/^\s*/g, '');
|
| 47 |
+
}
|
| 48 |
+
if (documentContext) {
|
| 49 |
+
return documentContext.resolveReference(tokenContent, base || documentUri);
|
| 50 |
+
}
|
| 51 |
+
return tokenContent;
|
| 52 |
+
}
|
| 53 |
+
function createLink(document, documentContext, attributeValue, startOffset, endOffset, base) {
|
| 54 |
+
const tokenContent = normalizeRef(attributeValue);
|
| 55 |
+
if (!validateRef(tokenContent, document.languageId)) {
|
| 56 |
+
return undefined;
|
| 57 |
+
}
|
| 58 |
+
if (tokenContent.length < attributeValue.length) {
|
| 59 |
+
startOffset++;
|
| 60 |
+
endOffset--;
|
| 61 |
+
}
|
| 62 |
+
const workspaceUrl = getWorkspaceUrl(document.uri, tokenContent, documentContext, base);
|
| 63 |
+
if (!workspaceUrl) {
|
| 64 |
+
return undefined;
|
| 65 |
+
}
|
| 66 |
+
const target = validateAndCleanURI(workspaceUrl, document);
|
| 67 |
+
return {
|
| 68 |
+
range: Range.create(document.positionAt(startOffset), document.positionAt(endOffset)),
|
| 69 |
+
target
|
| 70 |
+
};
|
| 71 |
+
}
|
| 72 |
+
const _hash = '#'.charCodeAt(0);
|
| 73 |
+
function validateAndCleanURI(uriStr, document) {
|
| 74 |
+
try {
|
| 75 |
+
let uri = Uri.parse(uriStr);
|
| 76 |
+
if (uri.scheme === 'file' && uri.query) {
|
| 77 |
+
// see https://github.com/microsoft/vscode/issues/194577 & https://github.com/microsoft/vscode/issues/206238
|
| 78 |
+
uri = uri.with({ query: null });
|
| 79 |
+
uriStr = uri.toString(/* skipEncodig*/ true);
|
| 80 |
+
}
|
| 81 |
+
if (uri.scheme === 'file' && uri.fragment && !(uriStr.startsWith(document.uri) && uriStr.charCodeAt(document.uri.length) === _hash)) {
|
| 82 |
+
return uri.with({ fragment: null }).toString(/* skipEncodig*/ true);
|
| 83 |
+
}
|
| 84 |
+
return uriStr;
|
| 85 |
+
}
|
| 86 |
+
catch (e) {
|
| 87 |
+
return undefined;
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
export class HTMLDocumentLinks {
|
| 91 |
+
constructor(dataManager) {
|
| 92 |
+
this.dataManager = dataManager;
|
| 93 |
+
}
|
| 94 |
+
findDocumentLinks(document, documentContext) {
|
| 95 |
+
const newLinks = [];
|
| 96 |
+
const scanner = createScanner(document.getText(), 0);
|
| 97 |
+
let token = scanner.scan();
|
| 98 |
+
let lastAttributeName = undefined;
|
| 99 |
+
let lastTagName = undefined;
|
| 100 |
+
let afterBase = false;
|
| 101 |
+
let base = void 0;
|
| 102 |
+
const idLocations = {};
|
| 103 |
+
while (token !== TokenType.EOS) {
|
| 104 |
+
switch (token) {
|
| 105 |
+
case TokenType.StartTag:
|
| 106 |
+
lastTagName = scanner.getTokenText().toLowerCase();
|
| 107 |
+
if (!base) {
|
| 108 |
+
afterBase = lastTagName === 'base';
|
| 109 |
+
}
|
| 110 |
+
break;
|
| 111 |
+
case TokenType.AttributeName:
|
| 112 |
+
lastAttributeName = scanner.getTokenText().toLowerCase();
|
| 113 |
+
break;
|
| 114 |
+
case TokenType.AttributeValue:
|
| 115 |
+
if (lastTagName && lastAttributeName && this.dataManager.isPathAttribute(lastTagName, lastAttributeName)) {
|
| 116 |
+
const attributeValue = scanner.getTokenText();
|
| 117 |
+
if (!afterBase) { // don't highlight the base link itself
|
| 118 |
+
const link = createLink(document, documentContext, attributeValue, scanner.getTokenOffset(), scanner.getTokenEnd(), base);
|
| 119 |
+
if (link) {
|
| 120 |
+
newLinks.push(link);
|
| 121 |
+
}
|
| 122 |
+
}
|
| 123 |
+
if (afterBase && typeof base === 'undefined') {
|
| 124 |
+
base = normalizeRef(attributeValue);
|
| 125 |
+
if (base && documentContext) {
|
| 126 |
+
base = documentContext.resolveReference(base, document.uri);
|
| 127 |
+
}
|
| 128 |
+
}
|
| 129 |
+
afterBase = false;
|
| 130 |
+
lastAttributeName = undefined;
|
| 131 |
+
}
|
| 132 |
+
else if (lastAttributeName === 'id') {
|
| 133 |
+
const id = normalizeRef(scanner.getTokenText());
|
| 134 |
+
idLocations[id] = scanner.getTokenOffset();
|
| 135 |
+
}
|
| 136 |
+
break;
|
| 137 |
+
}
|
| 138 |
+
token = scanner.scan();
|
| 139 |
+
}
|
| 140 |
+
// change local links with ids to actual positions
|
| 141 |
+
for (const link of newLinks) {
|
| 142 |
+
const localWithHash = document.uri + '#';
|
| 143 |
+
if (link.target && strings.startsWith(link.target, localWithHash)) {
|
| 144 |
+
const target = link.target.substring(localWithHash.length);
|
| 145 |
+
const offset = idLocations[target];
|
| 146 |
+
if (offset !== undefined) {
|
| 147 |
+
const pos = document.positionAt(offset);
|
| 148 |
+
link.target = `${localWithHash}${pos.line + 1},${pos.character + 1}`;
|
| 149 |
+
}
|
| 150 |
+
else {
|
| 151 |
+
link.target = document.uri;
|
| 152 |
+
}
|
| 153 |
+
}
|
| 154 |
+
}
|
| 155 |
+
return newLinks;
|
| 156 |
+
}
|
| 157 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlMatchingTagPosition.js
CHANGED
|
@@ -1,3 +1,25 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
export function findMatchingTagPosition(document, position, htmlDocument) {
|
| 6 |
+
const offset = document.offsetAt(position);
|
| 7 |
+
const node = htmlDocument.findNodeAt(offset);
|
| 8 |
+
if (!node.tag) {
|
| 9 |
+
return null;
|
| 10 |
+
}
|
| 11 |
+
if (!node.endTagStart) {
|
| 12 |
+
return null;
|
| 13 |
+
}
|
| 14 |
+
// Within open tag, compute close tag
|
| 15 |
+
if (node.start + '<'.length <= offset && offset <= node.start + '<'.length + node.tag.length) {
|
| 16 |
+
const mirrorOffset = (offset - '<'.length - node.start) + node.endTagStart + '</'.length;
|
| 17 |
+
return document.positionAt(mirrorOffset);
|
| 18 |
+
}
|
| 19 |
+
// Within closing tag, compute open tag
|
| 20 |
+
if (node.endTagStart + '</'.length <= offset && offset <= node.endTagStart + '</'.length + node.tag.length) {
|
| 21 |
+
const mirrorOffset = (offset - '</'.length - node.endTagStart) + node.start + '<'.length;
|
| 22 |
+
return document.positionAt(mirrorOffset);
|
| 23 |
+
}
|
| 24 |
+
return null;
|
| 25 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlRename.js
CHANGED
|
@@ -1,3 +1,51 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
export function doRename(document, position, newName, htmlDocument) {
|
| 6 |
+
const offset = document.offsetAt(position);
|
| 7 |
+
const node = htmlDocument.findNodeAt(offset);
|
| 8 |
+
if (!node.tag) {
|
| 9 |
+
return null;
|
| 10 |
+
}
|
| 11 |
+
if (!isWithinTagRange(node, offset, node.tag)) {
|
| 12 |
+
return null;
|
| 13 |
+
}
|
| 14 |
+
const edits = [];
|
| 15 |
+
const startTagRange = {
|
| 16 |
+
start: document.positionAt(node.start + '<'.length),
|
| 17 |
+
end: document.positionAt(node.start + '<'.length + node.tag.length)
|
| 18 |
+
};
|
| 19 |
+
edits.push({
|
| 20 |
+
range: startTagRange,
|
| 21 |
+
newText: newName
|
| 22 |
+
});
|
| 23 |
+
if (node.endTagStart) {
|
| 24 |
+
const endTagRange = {
|
| 25 |
+
start: document.positionAt(node.endTagStart + '</'.length),
|
| 26 |
+
end: document.positionAt(node.endTagStart + '</'.length + node.tag.length)
|
| 27 |
+
};
|
| 28 |
+
edits.push({
|
| 29 |
+
range: endTagRange,
|
| 30 |
+
newText: newName
|
| 31 |
+
});
|
| 32 |
+
}
|
| 33 |
+
const changes = {
|
| 34 |
+
[document.uri.toString()]: edits
|
| 35 |
+
};
|
| 36 |
+
return {
|
| 37 |
+
changes
|
| 38 |
+
};
|
| 39 |
+
}
|
| 40 |
+
function toLocString(p) {
|
| 41 |
+
return `(${p.line}, ${p.character})`;
|
| 42 |
+
}
|
| 43 |
+
function isWithinTagRange(node, offset, nodeTag) {
|
| 44 |
+
// Self-closing tag
|
| 45 |
+
if (node.endTagStart) {
|
| 46 |
+
if (node.endTagStart + '</'.length <= offset && offset <= node.endTagStart + '</'.length + nodeTag.length) {
|
| 47 |
+
return true;
|
| 48 |
+
}
|
| 49 |
+
}
|
| 50 |
+
return node.start + '<'.length <= offset && offset <= node.start + '<'.length + nodeTag.length;
|
| 51 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlSelectionRange.js
CHANGED
|
@@ -1,3 +1,174 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
import { createScanner } from '../parser/htmlScanner';
|
| 6 |
+
import { TokenType, Range, SelectionRange } from '../htmlLanguageTypes';
|
| 7 |
+
export class HTMLSelectionRange {
|
| 8 |
+
constructor(htmlParser) {
|
| 9 |
+
this.htmlParser = htmlParser;
|
| 10 |
+
}
|
| 11 |
+
getSelectionRanges(document, positions) {
|
| 12 |
+
const htmlDocument = this.htmlParser.parseDocument(document);
|
| 13 |
+
return positions.map(p => this.getSelectionRange(p, document, htmlDocument));
|
| 14 |
+
}
|
| 15 |
+
getSelectionRange(position, document, htmlDocument) {
|
| 16 |
+
const applicableRanges = this.getApplicableRanges(document, position, htmlDocument);
|
| 17 |
+
let prev = undefined;
|
| 18 |
+
let current = undefined;
|
| 19 |
+
for (let index = applicableRanges.length - 1; index >= 0; index--) {
|
| 20 |
+
const range = applicableRanges[index];
|
| 21 |
+
if (!prev || range[0] !== prev[0] || range[1] !== prev[1]) {
|
| 22 |
+
current = SelectionRange.create(Range.create(document.positionAt(applicableRanges[index][0]), document.positionAt(applicableRanges[index][1])), current);
|
| 23 |
+
}
|
| 24 |
+
prev = range;
|
| 25 |
+
}
|
| 26 |
+
if (!current) {
|
| 27 |
+
current = SelectionRange.create(Range.create(position, position));
|
| 28 |
+
}
|
| 29 |
+
return current;
|
| 30 |
+
}
|
| 31 |
+
getApplicableRanges(document, position, htmlDoc) {
|
| 32 |
+
const currOffset = document.offsetAt(position);
|
| 33 |
+
const currNode = htmlDoc.findNodeAt(currOffset);
|
| 34 |
+
let result = this.getAllParentTagRanges(currNode);
|
| 35 |
+
// Self-closing or void elements
|
| 36 |
+
if (currNode.startTagEnd && !currNode.endTagStart) {
|
| 37 |
+
// THe rare case of unmatching tag pairs like <div></div1>
|
| 38 |
+
if (currNode.startTagEnd !== currNode.end) {
|
| 39 |
+
return [[currNode.start, currNode.end]];
|
| 40 |
+
}
|
| 41 |
+
const closeRange = Range.create(document.positionAt(currNode.startTagEnd - 2), document.positionAt(currNode.startTagEnd));
|
| 42 |
+
const closeText = document.getText(closeRange);
|
| 43 |
+
// Self-closing element
|
| 44 |
+
if (closeText === '/>') {
|
| 45 |
+
result.unshift([currNode.start + 1, currNode.startTagEnd - 2]);
|
| 46 |
+
}
|
| 47 |
+
// Void element
|
| 48 |
+
else {
|
| 49 |
+
result.unshift([currNode.start + 1, currNode.startTagEnd - 1]);
|
| 50 |
+
}
|
| 51 |
+
const attributeLevelRanges = this.getAttributeLevelRanges(document, currNode, currOffset);
|
| 52 |
+
result = attributeLevelRanges.concat(result);
|
| 53 |
+
return result;
|
| 54 |
+
}
|
| 55 |
+
if (!currNode.startTagEnd || !currNode.endTagStart) {
|
| 56 |
+
return result;
|
| 57 |
+
}
|
| 58 |
+
/**
|
| 59 |
+
* For html like
|
| 60 |
+
* `<div class="foo">bar</div>`
|
| 61 |
+
*/
|
| 62 |
+
result.unshift([currNode.start, currNode.end]);
|
| 63 |
+
/**
|
| 64 |
+
* Cursor inside `<div class="foo">`
|
| 65 |
+
*/
|
| 66 |
+
if (currNode.start < currOffset && currOffset < currNode.startTagEnd) {
|
| 67 |
+
result.unshift([currNode.start + 1, currNode.startTagEnd - 1]);
|
| 68 |
+
const attributeLevelRanges = this.getAttributeLevelRanges(document, currNode, currOffset);
|
| 69 |
+
result = attributeLevelRanges.concat(result);
|
| 70 |
+
return result;
|
| 71 |
+
}
|
| 72 |
+
/**
|
| 73 |
+
* Cursor inside `bar`
|
| 74 |
+
*/
|
| 75 |
+
else if (currNode.startTagEnd <= currOffset && currOffset <= currNode.endTagStart) {
|
| 76 |
+
result.unshift([currNode.startTagEnd, currNode.endTagStart]);
|
| 77 |
+
return result;
|
| 78 |
+
}
|
| 79 |
+
/**
|
| 80 |
+
* Cursor inside `</div>`
|
| 81 |
+
*/
|
| 82 |
+
else {
|
| 83 |
+
// `div` inside `</div>`
|
| 84 |
+
if (currOffset >= currNode.endTagStart + 2) {
|
| 85 |
+
result.unshift([currNode.endTagStart + 2, currNode.end - 1]);
|
| 86 |
+
}
|
| 87 |
+
return result;
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
getAllParentTagRanges(initialNode) {
|
| 91 |
+
let currNode = initialNode;
|
| 92 |
+
const result = [];
|
| 93 |
+
while (currNode.parent) {
|
| 94 |
+
currNode = currNode.parent;
|
| 95 |
+
this.getNodeRanges(currNode).forEach(r => result.push(r));
|
| 96 |
+
}
|
| 97 |
+
return result;
|
| 98 |
+
}
|
| 99 |
+
getNodeRanges(n) {
|
| 100 |
+
if (n.startTagEnd && n.endTagStart && n.startTagEnd < n.endTagStart) {
|
| 101 |
+
return [
|
| 102 |
+
[n.startTagEnd, n.endTagStart],
|
| 103 |
+
[n.start, n.end]
|
| 104 |
+
];
|
| 105 |
+
}
|
| 106 |
+
return [
|
| 107 |
+
[n.start, n.end]
|
| 108 |
+
];
|
| 109 |
+
}
|
| 110 |
+
;
|
| 111 |
+
getAttributeLevelRanges(document, currNode, currOffset) {
|
| 112 |
+
const currNodeRange = Range.create(document.positionAt(currNode.start), document.positionAt(currNode.end));
|
| 113 |
+
const currNodeText = document.getText(currNodeRange);
|
| 114 |
+
const relativeOffset = currOffset - currNode.start;
|
| 115 |
+
/**
|
| 116 |
+
* Tag level semantic selection
|
| 117 |
+
*/
|
| 118 |
+
const scanner = createScanner(currNodeText);
|
| 119 |
+
let token = scanner.scan();
|
| 120 |
+
/**
|
| 121 |
+
* For text like
|
| 122 |
+
* <div class="foo">bar</div>
|
| 123 |
+
*/
|
| 124 |
+
const positionOffset = currNode.start;
|
| 125 |
+
const result = [];
|
| 126 |
+
let isInsideAttribute = false;
|
| 127 |
+
let attrStart = -1;
|
| 128 |
+
while (token !== TokenType.EOS) {
|
| 129 |
+
switch (token) {
|
| 130 |
+
case TokenType.AttributeName: {
|
| 131 |
+
if (relativeOffset < scanner.getTokenOffset()) {
|
| 132 |
+
isInsideAttribute = false;
|
| 133 |
+
break;
|
| 134 |
+
}
|
| 135 |
+
if (relativeOffset <= scanner.getTokenEnd()) {
|
| 136 |
+
// `class`
|
| 137 |
+
result.unshift([scanner.getTokenOffset(), scanner.getTokenEnd()]);
|
| 138 |
+
}
|
| 139 |
+
isInsideAttribute = true;
|
| 140 |
+
attrStart = scanner.getTokenOffset();
|
| 141 |
+
break;
|
| 142 |
+
}
|
| 143 |
+
case TokenType.AttributeValue: {
|
| 144 |
+
if (!isInsideAttribute) {
|
| 145 |
+
break;
|
| 146 |
+
}
|
| 147 |
+
const valueText = scanner.getTokenText();
|
| 148 |
+
if (relativeOffset < scanner.getTokenOffset()) {
|
| 149 |
+
// `class="foo"`
|
| 150 |
+
result.push([attrStart, scanner.getTokenEnd()]);
|
| 151 |
+
break;
|
| 152 |
+
}
|
| 153 |
+
if (relativeOffset >= scanner.getTokenOffset() && relativeOffset <= scanner.getTokenEnd()) {
|
| 154 |
+
// `"foo"`
|
| 155 |
+
result.unshift([scanner.getTokenOffset(), scanner.getTokenEnd()]);
|
| 156 |
+
// `foo`
|
| 157 |
+
if ((valueText[0] === `"` && valueText[valueText.length - 1] === `"`) || (valueText[0] === `'` && valueText[valueText.length - 1] === `'`)) {
|
| 158 |
+
if (relativeOffset >= scanner.getTokenOffset() + 1 && relativeOffset <= scanner.getTokenEnd() - 1) {
|
| 159 |
+
result.unshift([scanner.getTokenOffset() + 1, scanner.getTokenEnd() - 1]);
|
| 160 |
+
}
|
| 161 |
+
}
|
| 162 |
+
// `class="foo"`
|
| 163 |
+
result.push([attrStart, scanner.getTokenEnd()]);
|
| 164 |
+
}
|
| 165 |
+
break;
|
| 166 |
+
}
|
| 167 |
+
}
|
| 168 |
+
token = scanner.scan();
|
| 169 |
+
}
|
| 170 |
+
return result.map(pair => {
|
| 171 |
+
return [pair[0] + positionOffset, pair[1] + positionOffset];
|
| 172 |
+
});
|
| 173 |
+
}
|
| 174 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/htmlSymbolsProvider.js
CHANGED
|
@@ -1,3 +1,54 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
import { DocumentSymbol, Range, SymbolInformation, SymbolKind } from '../htmlLanguageTypes';
|
| 6 |
+
export function findDocumentSymbols(document, htmlDocument) {
|
| 7 |
+
const symbols = [];
|
| 8 |
+
const symbols2 = findDocumentSymbols2(document, htmlDocument);
|
| 9 |
+
for (const symbol of symbols2) {
|
| 10 |
+
walk(symbol, undefined);
|
| 11 |
+
}
|
| 12 |
+
return symbols;
|
| 13 |
+
function walk(node, parent) {
|
| 14 |
+
const symbol = SymbolInformation.create(node.name, node.kind, node.range, document.uri, parent?.name);
|
| 15 |
+
symbol.containerName ?? (symbol.containerName = '');
|
| 16 |
+
symbols.push(symbol);
|
| 17 |
+
if (node.children) {
|
| 18 |
+
for (const child of node.children) {
|
| 19 |
+
walk(child, node);
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
export function findDocumentSymbols2(document, htmlDocument) {
|
| 25 |
+
const symbols = [];
|
| 26 |
+
htmlDocument.roots.forEach(node => {
|
| 27 |
+
provideFileSymbolsInternal(document, node, symbols);
|
| 28 |
+
});
|
| 29 |
+
return symbols;
|
| 30 |
+
}
|
| 31 |
+
function provideFileSymbolsInternal(document, node, symbols) {
|
| 32 |
+
const name = nodeToName(node);
|
| 33 |
+
const range = Range.create(document.positionAt(node.start), document.positionAt(node.end));
|
| 34 |
+
const symbol = DocumentSymbol.create(name, undefined, SymbolKind.Field, range, range);
|
| 35 |
+
symbols.push(symbol);
|
| 36 |
+
node.children.forEach(child => {
|
| 37 |
+
symbol.children ?? (symbol.children = []);
|
| 38 |
+
provideFileSymbolsInternal(document, child, symbol.children);
|
| 39 |
+
});
|
| 40 |
+
}
|
| 41 |
+
function nodeToName(node) {
|
| 42 |
+
let name = node.tag;
|
| 43 |
+
if (node.attributes) {
|
| 44 |
+
const id = node.attributes['id'];
|
| 45 |
+
const classes = node.attributes['class'];
|
| 46 |
+
if (id) {
|
| 47 |
+
name += `#${id.replace(/[\"\']/g, '')}`;
|
| 48 |
+
}
|
| 49 |
+
if (classes) {
|
| 50 |
+
name += classes.replace(/[\"\']/g, '').split(/\s+/).map(className => `.${className}`).join('');
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
return name || '?';
|
| 54 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/services/pathCompletion.js
CHANGED
|
@@ -1,3 +1,126 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
import { CompletionItemKind, TextEdit, Range, Position, FileType } from '../htmlLanguageTypes';
|
| 6 |
+
import { startsWith } from '../utils/strings';
|
| 7 |
+
export class PathCompletionParticipant {
|
| 8 |
+
constructor(dataManager, readDirectory) {
|
| 9 |
+
this.dataManager = dataManager;
|
| 10 |
+
this.readDirectory = readDirectory;
|
| 11 |
+
this.atributeCompletions = [];
|
| 12 |
+
}
|
| 13 |
+
onHtmlAttributeValue(context) {
|
| 14 |
+
if (this.dataManager.isPathAttribute(context.tag, context.attribute)) {
|
| 15 |
+
this.atributeCompletions.push(context);
|
| 16 |
+
}
|
| 17 |
+
}
|
| 18 |
+
async computeCompletions(document, documentContext) {
|
| 19 |
+
const result = { items: [], isIncomplete: false };
|
| 20 |
+
for (const attributeCompletion of this.atributeCompletions) {
|
| 21 |
+
const fullValue = stripQuotes(document.getText(attributeCompletion.range));
|
| 22 |
+
if (isCompletablePath(fullValue)) {
|
| 23 |
+
if (fullValue === '.' || fullValue === '..') {
|
| 24 |
+
result.isIncomplete = true;
|
| 25 |
+
}
|
| 26 |
+
else {
|
| 27 |
+
const replaceRange = pathToReplaceRange(attributeCompletion.value, fullValue, attributeCompletion.range);
|
| 28 |
+
const suggestions = await this.providePathSuggestions(attributeCompletion.value, replaceRange, document, documentContext);
|
| 29 |
+
for (const item of suggestions) {
|
| 30 |
+
result.items.push(item);
|
| 31 |
+
}
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
return result;
|
| 36 |
+
}
|
| 37 |
+
async providePathSuggestions(valueBeforeCursor, replaceRange, document, documentContext) {
|
| 38 |
+
const valueBeforeLastSlash = valueBeforeCursor.substring(0, valueBeforeCursor.lastIndexOf('/') + 1); // keep the last slash
|
| 39 |
+
let parentDir = documentContext.resolveReference(valueBeforeLastSlash || '.', document.uri);
|
| 40 |
+
if (parentDir) {
|
| 41 |
+
try {
|
| 42 |
+
const result = [];
|
| 43 |
+
const infos = await this.readDirectory(parentDir);
|
| 44 |
+
for (const [name, type] of infos) {
|
| 45 |
+
// Exclude paths that start with `.`
|
| 46 |
+
if (name.charCodeAt(0) !== CharCode_dot) {
|
| 47 |
+
result.push(createCompletionItem(name, type === FileType.Directory, replaceRange));
|
| 48 |
+
}
|
| 49 |
+
}
|
| 50 |
+
return result;
|
| 51 |
+
}
|
| 52 |
+
catch (e) {
|
| 53 |
+
// ignore
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
+
return [];
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
const CharCode_dot = '.'.charCodeAt(0);
|
| 60 |
+
function stripQuotes(fullValue) {
|
| 61 |
+
if (startsWith(fullValue, `'`) || startsWith(fullValue, `"`)) {
|
| 62 |
+
return fullValue.slice(1, -1);
|
| 63 |
+
}
|
| 64 |
+
else {
|
| 65 |
+
return fullValue;
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
function isCompletablePath(value) {
|
| 69 |
+
if (startsWith(value, 'http') || startsWith(value, 'https') || startsWith(value, '//')) {
|
| 70 |
+
return false;
|
| 71 |
+
}
|
| 72 |
+
return true;
|
| 73 |
+
}
|
| 74 |
+
function pathToReplaceRange(valueBeforeCursor, fullValue, range) {
|
| 75 |
+
let replaceRange;
|
| 76 |
+
const lastIndexOfSlash = valueBeforeCursor.lastIndexOf('/');
|
| 77 |
+
if (lastIndexOfSlash === -1) {
|
| 78 |
+
replaceRange = shiftRange(range, 1, -1);
|
| 79 |
+
}
|
| 80 |
+
else {
|
| 81 |
+
// For cases where cursor is in the middle of attribute value, like <script src="./s|rc/test.js">
|
| 82 |
+
// Find the last slash before cursor, and calculate the start of replace range from there
|
| 83 |
+
const valueAfterLastSlash = fullValue.slice(lastIndexOfSlash + 1);
|
| 84 |
+
const startPos = shiftPosition(range.end, -1 - valueAfterLastSlash.length);
|
| 85 |
+
// If whitespace exists, replace until there is no more
|
| 86 |
+
const whitespaceIndex = valueAfterLastSlash.indexOf(' ');
|
| 87 |
+
let endPos;
|
| 88 |
+
if (whitespaceIndex !== -1) {
|
| 89 |
+
endPos = shiftPosition(startPos, whitespaceIndex);
|
| 90 |
+
}
|
| 91 |
+
else {
|
| 92 |
+
endPos = shiftPosition(range.end, -1);
|
| 93 |
+
}
|
| 94 |
+
replaceRange = Range.create(startPos, endPos);
|
| 95 |
+
}
|
| 96 |
+
return replaceRange;
|
| 97 |
+
}
|
| 98 |
+
function createCompletionItem(p, isDir, replaceRange) {
|
| 99 |
+
if (isDir) {
|
| 100 |
+
p = p + '/';
|
| 101 |
+
return {
|
| 102 |
+
label: p,
|
| 103 |
+
kind: CompletionItemKind.Folder,
|
| 104 |
+
textEdit: TextEdit.replace(replaceRange, p),
|
| 105 |
+
command: {
|
| 106 |
+
title: 'Suggest',
|
| 107 |
+
command: 'editor.action.triggerSuggest'
|
| 108 |
+
}
|
| 109 |
+
};
|
| 110 |
+
}
|
| 111 |
+
else {
|
| 112 |
+
return {
|
| 113 |
+
label: p,
|
| 114 |
+
kind: CompletionItemKind.File,
|
| 115 |
+
textEdit: TextEdit.replace(replaceRange, p)
|
| 116 |
+
};
|
| 117 |
+
}
|
| 118 |
+
}
|
| 119 |
+
function shiftPosition(pos, offset) {
|
| 120 |
+
return Position.create(pos.line, pos.character + offset);
|
| 121 |
+
}
|
| 122 |
+
function shiftRange(range, startOffset, endOffset) {
|
| 123 |
+
const start = shiftPosition(range.start, startOffset);
|
| 124 |
+
const end = shiftPosition(range.end, endOffset);
|
| 125 |
+
return Range.create(start, end);
|
| 126 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/utils/arrays.js
CHANGED
|
@@ -1,3 +1,42 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
/**
|
| 6 |
+
* Takes a sorted array and a function p. The array is sorted in such a way that all elements where p(x) is false
|
| 7 |
+
* are located before all elements where p(x) is true.
|
| 8 |
+
* @returns the least x for which p(x) is true or array.length if no element fullfills the given function.
|
| 9 |
+
*/
|
| 10 |
+
export function findFirst(array, p) {
|
| 11 |
+
let low = 0, high = array.length;
|
| 12 |
+
if (high === 0) {
|
| 13 |
+
return 0; // no children
|
| 14 |
+
}
|
| 15 |
+
while (low < high) {
|
| 16 |
+
let mid = Math.floor((low + high) / 2);
|
| 17 |
+
if (p(array[mid])) {
|
| 18 |
+
high = mid;
|
| 19 |
+
}
|
| 20 |
+
else {
|
| 21 |
+
low = mid + 1;
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
return low;
|
| 25 |
+
}
|
| 26 |
+
export function binarySearch(array, key, comparator) {
|
| 27 |
+
let low = 0, high = array.length - 1;
|
| 28 |
+
while (low <= high) {
|
| 29 |
+
const mid = ((low + high) / 2) | 0;
|
| 30 |
+
const comp = comparator(array[mid], key);
|
| 31 |
+
if (comp < 0) {
|
| 32 |
+
low = mid + 1;
|
| 33 |
+
}
|
| 34 |
+
else if (comp > 0) {
|
| 35 |
+
high = mid - 1;
|
| 36 |
+
}
|
| 37 |
+
else {
|
| 38 |
+
return mid;
|
| 39 |
+
}
|
| 40 |
+
}
|
| 41 |
+
return -(low + 1);
|
| 42 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/utils/markup.js
CHANGED
|
@@ -1,3 +1,19 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
export function normalizeMarkupContent(input) {
|
| 6 |
+
if (!input) {
|
| 7 |
+
return undefined;
|
| 8 |
+
}
|
| 9 |
+
if (typeof input === 'string') {
|
| 10 |
+
return {
|
| 11 |
+
kind: 'markdown',
|
| 12 |
+
value: input
|
| 13 |
+
};
|
| 14 |
+
}
|
| 15 |
+
return {
|
| 16 |
+
kind: 'markdown',
|
| 17 |
+
value: input.value
|
| 18 |
+
};
|
| 19 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/utils/object.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
export function isDefined(obj) {
|
| 6 |
+
return typeof obj !== 'undefined';
|
| 7 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/utils/paths.js
CHANGED
|
@@ -1,3 +1,64 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
/**
|
| 6 |
+
* @returns the directory name of a path.
|
| 7 |
+
*/
|
| 8 |
+
export function dirname(path) {
|
| 9 |
+
const idx = ~path.lastIndexOf('/') || ~path.lastIndexOf('\\');
|
| 10 |
+
if (idx === 0) {
|
| 11 |
+
return '.';
|
| 12 |
+
}
|
| 13 |
+
else if (~idx === 0) {
|
| 14 |
+
return path[0];
|
| 15 |
+
}
|
| 16 |
+
else {
|
| 17 |
+
return path.substring(0, ~idx);
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
/**
|
| 21 |
+
* @returns the base name of a path.
|
| 22 |
+
*/
|
| 23 |
+
export function basename(path) {
|
| 24 |
+
const idx = ~path.lastIndexOf('/') || ~path.lastIndexOf('\\');
|
| 25 |
+
if (idx === 0) {
|
| 26 |
+
return path;
|
| 27 |
+
}
|
| 28 |
+
else if (~idx === path.length - 1) {
|
| 29 |
+
return basename(path.substring(0, path.length - 1));
|
| 30 |
+
}
|
| 31 |
+
else {
|
| 32 |
+
return path.substr(~idx + 1);
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
/**
|
| 36 |
+
* @returns {{.far}} from boo.far or the empty string.
|
| 37 |
+
*/
|
| 38 |
+
export function extname(path) {
|
| 39 |
+
path = basename(path);
|
| 40 |
+
const idx = ~path.lastIndexOf('.');
|
| 41 |
+
return idx ? path.substring(~idx) : '';
|
| 42 |
+
}
|
| 43 |
+
export const join = function () {
|
| 44 |
+
// Not using a function with var-args because of how TS compiles
|
| 45 |
+
// them to JS - it would result in 2*n runtime cost instead
|
| 46 |
+
// of 1*n, where n is parts.length.
|
| 47 |
+
let value = '';
|
| 48 |
+
for (let i = 0; i < arguments.length; i++) {
|
| 49 |
+
const part = arguments[i];
|
| 50 |
+
if (i > 0) {
|
| 51 |
+
// add the separater between two parts unless
|
| 52 |
+
// there already is one
|
| 53 |
+
const last = value.charCodeAt(value.length - 1);
|
| 54 |
+
if (last !== 47 /* CharCode.Slash */ && last !== 92 /* CharCode.Backslash */) {
|
| 55 |
+
const next = part.charCodeAt(0);
|
| 56 |
+
if (next !== 47 /* CharCode.Slash */ && next !== 92 /* CharCode.Backslash */) {
|
| 57 |
+
value += '/';
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
}
|
| 61 |
+
value += part;
|
| 62 |
+
}
|
| 63 |
+
return value;
|
| 64 |
+
};
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/utils/resources.js
CHANGED
|
@@ -1,3 +1,73 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
import { URI } from 'vscode-uri';
|
| 6 |
+
const Slash = '/'.charCodeAt(0);
|
| 7 |
+
const Dot = '.'.charCodeAt(0);
|
| 8 |
+
export function isAbsolutePath(path) {
|
| 9 |
+
return path.charCodeAt(0) === Slash;
|
| 10 |
+
}
|
| 11 |
+
export function dirname(uri) {
|
| 12 |
+
const lastIndexOfSlash = uri.lastIndexOf('/');
|
| 13 |
+
return lastIndexOfSlash !== -1 ? uri.substr(0, lastIndexOfSlash) : '';
|
| 14 |
+
}
|
| 15 |
+
export function basename(uri) {
|
| 16 |
+
const lastIndexOfSlash = uri.lastIndexOf('/');
|
| 17 |
+
return uri.substr(lastIndexOfSlash + 1);
|
| 18 |
+
}
|
| 19 |
+
export function extname(uri) {
|
| 20 |
+
for (let i = uri.length - 1; i >= 0; i--) {
|
| 21 |
+
const ch = uri.charCodeAt(i);
|
| 22 |
+
if (ch === Dot) {
|
| 23 |
+
if (i > 0 && uri.charCodeAt(i - 1) !== Slash) {
|
| 24 |
+
return uri.substr(i);
|
| 25 |
+
}
|
| 26 |
+
else {
|
| 27 |
+
break;
|
| 28 |
+
}
|
| 29 |
+
}
|
| 30 |
+
else if (ch === Slash) {
|
| 31 |
+
break;
|
| 32 |
+
}
|
| 33 |
+
}
|
| 34 |
+
return '';
|
| 35 |
+
}
|
| 36 |
+
export function resolvePath(uriString, path) {
|
| 37 |
+
if (isAbsolutePath(path)) {
|
| 38 |
+
const uri = URI.parse(uriString);
|
| 39 |
+
const parts = path.split('/');
|
| 40 |
+
return uri.with({ path: normalizePath(parts) }).toString();
|
| 41 |
+
}
|
| 42 |
+
return joinPath(uriString, path);
|
| 43 |
+
}
|
| 44 |
+
export function normalizePath(parts) {
|
| 45 |
+
const newParts = [];
|
| 46 |
+
for (const part of parts) {
|
| 47 |
+
if (part.length === 0 || part.length === 1 && part.charCodeAt(0) === Dot) {
|
| 48 |
+
// ignore
|
| 49 |
+
}
|
| 50 |
+
else if (part.length === 2 && part.charCodeAt(0) === Dot && part.charCodeAt(1) === Dot) {
|
| 51 |
+
newParts.pop();
|
| 52 |
+
}
|
| 53 |
+
else {
|
| 54 |
+
newParts.push(part);
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
if (parts.length > 1 && parts[parts.length - 1].length === 0) {
|
| 58 |
+
newParts.push('');
|
| 59 |
+
}
|
| 60 |
+
let res = newParts.join('/');
|
| 61 |
+
if (parts[0].length === 0) {
|
| 62 |
+
res = '/' + res;
|
| 63 |
+
}
|
| 64 |
+
return res;
|
| 65 |
+
}
|
| 66 |
+
export function joinPath(uriString, ...paths) {
|
| 67 |
+
const uri = URI.parse(uriString);
|
| 68 |
+
const parts = uri.path.split('/');
|
| 69 |
+
for (let path of paths) {
|
| 70 |
+
parts.push(...path.split('/'));
|
| 71 |
+
}
|
| 72 |
+
return uri.with({ path: normalizePath(parts) }).toString();
|
| 73 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/esm/utils/strings.js
CHANGED
|
@@ -1,3 +1,64 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
export function startsWith(haystack, needle) {
|
| 6 |
+
if (haystack.length < needle.length) {
|
| 7 |
+
return false;
|
| 8 |
+
}
|
| 9 |
+
for (let i = 0; i < needle.length; i++) {
|
| 10 |
+
if (haystack[i] !== needle[i]) {
|
| 11 |
+
return false;
|
| 12 |
+
}
|
| 13 |
+
}
|
| 14 |
+
return true;
|
| 15 |
+
}
|
| 16 |
+
/**
|
| 17 |
+
* Determines if haystack ends with needle.
|
| 18 |
+
*/
|
| 19 |
+
export function endsWith(haystack, needle) {
|
| 20 |
+
const diff = haystack.length - needle.length;
|
| 21 |
+
if (diff > 0) {
|
| 22 |
+
return haystack.lastIndexOf(needle) === diff;
|
| 23 |
+
}
|
| 24 |
+
else if (diff === 0) {
|
| 25 |
+
return haystack === needle;
|
| 26 |
+
}
|
| 27 |
+
else {
|
| 28 |
+
return false;
|
| 29 |
+
}
|
| 30 |
+
}
|
| 31 |
+
/**
|
| 32 |
+
* @returns the length of the common prefix of the two strings.
|
| 33 |
+
*/
|
| 34 |
+
export function commonPrefixLength(a, b) {
|
| 35 |
+
let i;
|
| 36 |
+
const len = Math.min(a.length, b.length);
|
| 37 |
+
for (i = 0; i < len; i++) {
|
| 38 |
+
if (a.charCodeAt(i) !== b.charCodeAt(i)) {
|
| 39 |
+
return i;
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
return len;
|
| 43 |
+
}
|
| 44 |
+
export function repeat(value, count) {
|
| 45 |
+
let s = '';
|
| 46 |
+
while (count > 0) {
|
| 47 |
+
if ((count & 1) === 1) {
|
| 48 |
+
s += value;
|
| 49 |
+
}
|
| 50 |
+
value += value;
|
| 51 |
+
count = count >>> 1;
|
| 52 |
+
}
|
| 53 |
+
return s;
|
| 54 |
+
}
|
| 55 |
+
const _a = 'a'.charCodeAt(0);
|
| 56 |
+
const _z = 'z'.charCodeAt(0);
|
| 57 |
+
const _A = 'A'.charCodeAt(0);
|
| 58 |
+
const _Z = 'Z'.charCodeAt(0);
|
| 59 |
+
const _0 = '0'.charCodeAt(0);
|
| 60 |
+
const _9 = '9'.charCodeAt(0);
|
| 61 |
+
export function isLetterOrDigit(text, index) {
|
| 62 |
+
const c = text.charCodeAt(index);
|
| 63 |
+
return (_a <= c && c <= _z) || (_A <= c && c <= _Z) || (_0 <= c && c <= _9);
|
| 64 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/beautify/beautify-css.js
CHANGED
|
@@ -1,3 +1,1695 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// copied from js-beautify/js/lib/beautify-css.js
|
| 2 |
+
// version: 1.15.1
|
| 3 |
+
/* AUTO-GENERATED. DO NOT MODIFY. */
|
| 4 |
+
/*
|
| 5 |
+
|
| 6 |
+
The MIT License (MIT)
|
| 7 |
+
|
| 8 |
+
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
|
| 9 |
+
|
| 10 |
+
Permission is hereby granted, free of charge, to any person
|
| 11 |
+
obtaining a copy of this software and associated documentation files
|
| 12 |
+
(the "Software"), to deal in the Software without restriction,
|
| 13 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 14 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 15 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 16 |
+
subject to the following conditions:
|
| 17 |
+
|
| 18 |
+
The above copyright notice and this permission notice shall be
|
| 19 |
+
included in all copies or substantial portions of the Software.
|
| 20 |
+
|
| 21 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 22 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 23 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 24 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 25 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 26 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 27 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 28 |
+
SOFTWARE.
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
CSS Beautifier
|
| 32 |
+
---------------
|
| 33 |
+
|
| 34 |
+
Written by Harutyun Amirjanyan, (amirjanyan@gmail.com)
|
| 35 |
+
|
| 36 |
+
Based on code initially developed by: Einar Lielmanis, <einar@beautifier.io>
|
| 37 |
+
https://beautifier.io/
|
| 38 |
+
|
| 39 |
+
Usage:
|
| 40 |
+
css_beautify(source_text);
|
| 41 |
+
css_beautify(source_text, options);
|
| 42 |
+
|
| 43 |
+
The options are (default in brackets):
|
| 44 |
+
indent_size (4) — indentation size,
|
| 45 |
+
indent_char (space) — character to indent with,
|
| 46 |
+
selector_separator_newline (true) - separate selectors with newline or
|
| 47 |
+
not (e.g. "a,\nbr" or "a, br")
|
| 48 |
+
end_with_newline (false) - end with a newline
|
| 49 |
+
newline_between_rules (true) - add a new line after every css rule
|
| 50 |
+
space_around_selector_separator (false) - ensure space around selector separators:
|
| 51 |
+
'>', '+', '~' (e.g. "a>b" -> "a > b")
|
| 52 |
+
e.g
|
| 53 |
+
|
| 54 |
+
css_beautify(css_source_text, {
|
| 55 |
+
'indent_size': 1,
|
| 56 |
+
'indent_char': '\t',
|
| 57 |
+
'selector_separator': ' ',
|
| 58 |
+
'end_with_newline': false,
|
| 59 |
+
'newline_between_rules': true,
|
| 60 |
+
'space_around_selector_separator': true
|
| 61 |
+
});
|
| 62 |
+
*/
|
| 63 |
+
|
| 64 |
+
// http://www.w3.org/TR/CSS21/syndata.html#tokenization
|
| 65 |
+
// http://www.w3.org/TR/css3-syntax/
|
| 66 |
+
|
| 67 |
+
(function() {
|
| 68 |
+
|
| 69 |
+
/* GENERATED_BUILD_OUTPUT */
|
| 70 |
+
var legacy_beautify_css;
|
| 71 |
+
/******/ (function() { // webpackBootstrap
|
| 72 |
+
/******/ "use strict";
|
| 73 |
+
/******/ var __webpack_modules__ = ([
|
| 74 |
+
/* 0 */,
|
| 75 |
+
/* 1 */,
|
| 76 |
+
/* 2 */
|
| 77 |
+
/***/ (function(module) {
|
| 78 |
+
|
| 79 |
+
/*jshint node:true */
|
| 80 |
+
/*
|
| 81 |
+
The MIT License (MIT)
|
| 82 |
+
|
| 83 |
+
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
|
| 84 |
+
|
| 85 |
+
Permission is hereby granted, free of charge, to any person
|
| 86 |
+
obtaining a copy of this software and associated documentation files
|
| 87 |
+
(the "Software"), to deal in the Software without restriction,
|
| 88 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 89 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 90 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 91 |
+
subject to the following conditions:
|
| 92 |
+
|
| 93 |
+
The above copyright notice and this permission notice shall be
|
| 94 |
+
included in all copies or substantial portions of the Software.
|
| 95 |
+
|
| 96 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 97 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 98 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 99 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 100 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 101 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 102 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 103 |
+
SOFTWARE.
|
| 104 |
+
*/
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
function OutputLine(parent) {
|
| 109 |
+
this.__parent = parent;
|
| 110 |
+
this.__character_count = 0;
|
| 111 |
+
// use indent_count as a marker for this.__lines that have preserved indentation
|
| 112 |
+
this.__indent_count = -1;
|
| 113 |
+
this.__alignment_count = 0;
|
| 114 |
+
this.__wrap_point_index = 0;
|
| 115 |
+
this.__wrap_point_character_count = 0;
|
| 116 |
+
this.__wrap_point_indent_count = -1;
|
| 117 |
+
this.__wrap_point_alignment_count = 0;
|
| 118 |
+
|
| 119 |
+
this.__items = [];
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
OutputLine.prototype.clone_empty = function() {
|
| 123 |
+
var line = new OutputLine(this.__parent);
|
| 124 |
+
line.set_indent(this.__indent_count, this.__alignment_count);
|
| 125 |
+
return line;
|
| 126 |
+
};
|
| 127 |
+
|
| 128 |
+
OutputLine.prototype.item = function(index) {
|
| 129 |
+
if (index < 0) {
|
| 130 |
+
return this.__items[this.__items.length + index];
|
| 131 |
+
} else {
|
| 132 |
+
return this.__items[index];
|
| 133 |
+
}
|
| 134 |
+
};
|
| 135 |
+
|
| 136 |
+
OutputLine.prototype.has_match = function(pattern) {
|
| 137 |
+
for (var lastCheckedOutput = this.__items.length - 1; lastCheckedOutput >= 0; lastCheckedOutput--) {
|
| 138 |
+
if (this.__items[lastCheckedOutput].match(pattern)) {
|
| 139 |
+
return true;
|
| 140 |
+
}
|
| 141 |
+
}
|
| 142 |
+
return false;
|
| 143 |
+
};
|
| 144 |
+
|
| 145 |
+
OutputLine.prototype.set_indent = function(indent, alignment) {
|
| 146 |
+
if (this.is_empty()) {
|
| 147 |
+
this.__indent_count = indent || 0;
|
| 148 |
+
this.__alignment_count = alignment || 0;
|
| 149 |
+
this.__character_count = this.__parent.get_indent_size(this.__indent_count, this.__alignment_count);
|
| 150 |
+
}
|
| 151 |
+
};
|
| 152 |
+
|
| 153 |
+
OutputLine.prototype._set_wrap_point = function() {
|
| 154 |
+
if (this.__parent.wrap_line_length) {
|
| 155 |
+
this.__wrap_point_index = this.__items.length;
|
| 156 |
+
this.__wrap_point_character_count = this.__character_count;
|
| 157 |
+
this.__wrap_point_indent_count = this.__parent.next_line.__indent_count;
|
| 158 |
+
this.__wrap_point_alignment_count = this.__parent.next_line.__alignment_count;
|
| 159 |
+
}
|
| 160 |
+
};
|
| 161 |
+
|
| 162 |
+
OutputLine.prototype._should_wrap = function() {
|
| 163 |
+
return this.__wrap_point_index &&
|
| 164 |
+
this.__character_count > this.__parent.wrap_line_length &&
|
| 165 |
+
this.__wrap_point_character_count > this.__parent.next_line.__character_count;
|
| 166 |
+
};
|
| 167 |
+
|
| 168 |
+
OutputLine.prototype._allow_wrap = function() {
|
| 169 |
+
if (this._should_wrap()) {
|
| 170 |
+
this.__parent.add_new_line();
|
| 171 |
+
var next = this.__parent.current_line;
|
| 172 |
+
next.set_indent(this.__wrap_point_indent_count, this.__wrap_point_alignment_count);
|
| 173 |
+
next.__items = this.__items.slice(this.__wrap_point_index);
|
| 174 |
+
this.__items = this.__items.slice(0, this.__wrap_point_index);
|
| 175 |
+
|
| 176 |
+
next.__character_count += this.__character_count - this.__wrap_point_character_count;
|
| 177 |
+
this.__character_count = this.__wrap_point_character_count;
|
| 178 |
+
|
| 179 |
+
if (next.__items[0] === " ") {
|
| 180 |
+
next.__items.splice(0, 1);
|
| 181 |
+
next.__character_count -= 1;
|
| 182 |
+
}
|
| 183 |
+
return true;
|
| 184 |
+
}
|
| 185 |
+
return false;
|
| 186 |
+
};
|
| 187 |
+
|
| 188 |
+
OutputLine.prototype.is_empty = function() {
|
| 189 |
+
return this.__items.length === 0;
|
| 190 |
+
};
|
| 191 |
+
|
| 192 |
+
OutputLine.prototype.last = function() {
|
| 193 |
+
if (!this.is_empty()) {
|
| 194 |
+
return this.__items[this.__items.length - 1];
|
| 195 |
+
} else {
|
| 196 |
+
return null;
|
| 197 |
+
}
|
| 198 |
+
};
|
| 199 |
+
|
| 200 |
+
OutputLine.prototype.push = function(item) {
|
| 201 |
+
this.__items.push(item);
|
| 202 |
+
var last_newline_index = item.lastIndexOf('\n');
|
| 203 |
+
if (last_newline_index !== -1) {
|
| 204 |
+
this.__character_count = item.length - last_newline_index;
|
| 205 |
+
} else {
|
| 206 |
+
this.__character_count += item.length;
|
| 207 |
+
}
|
| 208 |
+
};
|
| 209 |
+
|
| 210 |
+
OutputLine.prototype.pop = function() {
|
| 211 |
+
var item = null;
|
| 212 |
+
if (!this.is_empty()) {
|
| 213 |
+
item = this.__items.pop();
|
| 214 |
+
this.__character_count -= item.length;
|
| 215 |
+
}
|
| 216 |
+
return item;
|
| 217 |
+
};
|
| 218 |
+
|
| 219 |
+
|
| 220 |
+
OutputLine.prototype._remove_indent = function() {
|
| 221 |
+
if (this.__indent_count > 0) {
|
| 222 |
+
this.__indent_count -= 1;
|
| 223 |
+
this.__character_count -= this.__parent.indent_size;
|
| 224 |
+
}
|
| 225 |
+
};
|
| 226 |
+
|
| 227 |
+
OutputLine.prototype._remove_wrap_indent = function() {
|
| 228 |
+
if (this.__wrap_point_indent_count > 0) {
|
| 229 |
+
this.__wrap_point_indent_count -= 1;
|
| 230 |
+
}
|
| 231 |
+
};
|
| 232 |
+
OutputLine.prototype.trim = function() {
|
| 233 |
+
while (this.last() === ' ') {
|
| 234 |
+
this.__items.pop();
|
| 235 |
+
this.__character_count -= 1;
|
| 236 |
+
}
|
| 237 |
+
};
|
| 238 |
+
|
| 239 |
+
OutputLine.prototype.toString = function() {
|
| 240 |
+
var result = '';
|
| 241 |
+
if (this.is_empty()) {
|
| 242 |
+
if (this.__parent.indent_empty_lines) {
|
| 243 |
+
result = this.__parent.get_indent_string(this.__indent_count);
|
| 244 |
+
}
|
| 245 |
+
} else {
|
| 246 |
+
result = this.__parent.get_indent_string(this.__indent_count, this.__alignment_count);
|
| 247 |
+
result += this.__items.join('');
|
| 248 |
+
}
|
| 249 |
+
return result;
|
| 250 |
+
};
|
| 251 |
+
|
| 252 |
+
function IndentStringCache(options, baseIndentString) {
|
| 253 |
+
this.__cache = [''];
|
| 254 |
+
this.__indent_size = options.indent_size;
|
| 255 |
+
this.__indent_string = options.indent_char;
|
| 256 |
+
if (!options.indent_with_tabs) {
|
| 257 |
+
this.__indent_string = new Array(options.indent_size + 1).join(options.indent_char);
|
| 258 |
+
}
|
| 259 |
+
|
| 260 |
+
// Set to null to continue support for auto detection of base indent
|
| 261 |
+
baseIndentString = baseIndentString || '';
|
| 262 |
+
if (options.indent_level > 0) {
|
| 263 |
+
baseIndentString = new Array(options.indent_level + 1).join(this.__indent_string);
|
| 264 |
+
}
|
| 265 |
+
|
| 266 |
+
this.__base_string = baseIndentString;
|
| 267 |
+
this.__base_string_length = baseIndentString.length;
|
| 268 |
+
}
|
| 269 |
+
|
| 270 |
+
IndentStringCache.prototype.get_indent_size = function(indent, column) {
|
| 271 |
+
var result = this.__base_string_length;
|
| 272 |
+
column = column || 0;
|
| 273 |
+
if (indent < 0) {
|
| 274 |
+
result = 0;
|
| 275 |
+
}
|
| 276 |
+
result += indent * this.__indent_size;
|
| 277 |
+
result += column;
|
| 278 |
+
return result;
|
| 279 |
+
};
|
| 280 |
+
|
| 281 |
+
IndentStringCache.prototype.get_indent_string = function(indent_level, column) {
|
| 282 |
+
var result = this.__base_string;
|
| 283 |
+
column = column || 0;
|
| 284 |
+
if (indent_level < 0) {
|
| 285 |
+
indent_level = 0;
|
| 286 |
+
result = '';
|
| 287 |
+
}
|
| 288 |
+
column += indent_level * this.__indent_size;
|
| 289 |
+
this.__ensure_cache(column);
|
| 290 |
+
result += this.__cache[column];
|
| 291 |
+
return result;
|
| 292 |
+
};
|
| 293 |
+
|
| 294 |
+
IndentStringCache.prototype.__ensure_cache = function(column) {
|
| 295 |
+
while (column >= this.__cache.length) {
|
| 296 |
+
this.__add_column();
|
| 297 |
+
}
|
| 298 |
+
};
|
| 299 |
+
|
| 300 |
+
IndentStringCache.prototype.__add_column = function() {
|
| 301 |
+
var column = this.__cache.length;
|
| 302 |
+
var indent = 0;
|
| 303 |
+
var result = '';
|
| 304 |
+
if (this.__indent_size && column >= this.__indent_size) {
|
| 305 |
+
indent = Math.floor(column / this.__indent_size);
|
| 306 |
+
column -= indent * this.__indent_size;
|
| 307 |
+
result = new Array(indent + 1).join(this.__indent_string);
|
| 308 |
+
}
|
| 309 |
+
if (column) {
|
| 310 |
+
result += new Array(column + 1).join(' ');
|
| 311 |
+
}
|
| 312 |
+
|
| 313 |
+
this.__cache.push(result);
|
| 314 |
+
};
|
| 315 |
+
|
| 316 |
+
function Output(options, baseIndentString) {
|
| 317 |
+
this.__indent_cache = new IndentStringCache(options, baseIndentString);
|
| 318 |
+
this.raw = false;
|
| 319 |
+
this._end_with_newline = options.end_with_newline;
|
| 320 |
+
this.indent_size = options.indent_size;
|
| 321 |
+
this.wrap_line_length = options.wrap_line_length;
|
| 322 |
+
this.indent_empty_lines = options.indent_empty_lines;
|
| 323 |
+
this.__lines = [];
|
| 324 |
+
this.previous_line = null;
|
| 325 |
+
this.current_line = null;
|
| 326 |
+
this.next_line = new OutputLine(this);
|
| 327 |
+
this.space_before_token = false;
|
| 328 |
+
this.non_breaking_space = false;
|
| 329 |
+
this.previous_token_wrapped = false;
|
| 330 |
+
// initialize
|
| 331 |
+
this.__add_outputline();
|
| 332 |
+
}
|
| 333 |
+
|
| 334 |
+
Output.prototype.__add_outputline = function() {
|
| 335 |
+
this.previous_line = this.current_line;
|
| 336 |
+
this.current_line = this.next_line.clone_empty();
|
| 337 |
+
this.__lines.push(this.current_line);
|
| 338 |
+
};
|
| 339 |
+
|
| 340 |
+
Output.prototype.get_line_number = function() {
|
| 341 |
+
return this.__lines.length;
|
| 342 |
+
};
|
| 343 |
+
|
| 344 |
+
Output.prototype.get_indent_string = function(indent, column) {
|
| 345 |
+
return this.__indent_cache.get_indent_string(indent, column);
|
| 346 |
+
};
|
| 347 |
+
|
| 348 |
+
Output.prototype.get_indent_size = function(indent, column) {
|
| 349 |
+
return this.__indent_cache.get_indent_size(indent, column);
|
| 350 |
+
};
|
| 351 |
+
|
| 352 |
+
Output.prototype.is_empty = function() {
|
| 353 |
+
return !this.previous_line && this.current_line.is_empty();
|
| 354 |
+
};
|
| 355 |
+
|
| 356 |
+
Output.prototype.add_new_line = function(force_newline) {
|
| 357 |
+
// never newline at the start of file
|
| 358 |
+
// otherwise, newline only if we didn't just add one or we're forced
|
| 359 |
+
if (this.is_empty() ||
|
| 360 |
+
(!force_newline && this.just_added_newline())) {
|
| 361 |
+
return false;
|
| 362 |
+
}
|
| 363 |
+
|
| 364 |
+
// if raw output is enabled, don't print additional newlines,
|
| 365 |
+
// but still return True as though you had
|
| 366 |
+
if (!this.raw) {
|
| 367 |
+
this.__add_outputline();
|
| 368 |
+
}
|
| 369 |
+
return true;
|
| 370 |
+
};
|
| 371 |
+
|
| 372 |
+
Output.prototype.get_code = function(eol) {
|
| 373 |
+
this.trim(true);
|
| 374 |
+
|
| 375 |
+
// handle some edge cases where the last tokens
|
| 376 |
+
// has text that ends with newline(s)
|
| 377 |
+
var last_item = this.current_line.pop();
|
| 378 |
+
if (last_item) {
|
| 379 |
+
if (last_item[last_item.length - 1] === '\n') {
|
| 380 |
+
last_item = last_item.replace(/\n+$/g, '');
|
| 381 |
+
}
|
| 382 |
+
this.current_line.push(last_item);
|
| 383 |
+
}
|
| 384 |
+
|
| 385 |
+
if (this._end_with_newline) {
|
| 386 |
+
this.__add_outputline();
|
| 387 |
+
}
|
| 388 |
+
|
| 389 |
+
var sweet_code = this.__lines.join('\n');
|
| 390 |
+
|
| 391 |
+
if (eol !== '\n') {
|
| 392 |
+
sweet_code = sweet_code.replace(/[\n]/g, eol);
|
| 393 |
+
}
|
| 394 |
+
return sweet_code;
|
| 395 |
+
};
|
| 396 |
+
|
| 397 |
+
Output.prototype.set_wrap_point = function() {
|
| 398 |
+
this.current_line._set_wrap_point();
|
| 399 |
+
};
|
| 400 |
+
|
| 401 |
+
Output.prototype.set_indent = function(indent, alignment) {
|
| 402 |
+
indent = indent || 0;
|
| 403 |
+
alignment = alignment || 0;
|
| 404 |
+
|
| 405 |
+
// Next line stores alignment values
|
| 406 |
+
this.next_line.set_indent(indent, alignment);
|
| 407 |
+
|
| 408 |
+
// Never indent your first output indent at the start of the file
|
| 409 |
+
if (this.__lines.length > 1) {
|
| 410 |
+
this.current_line.set_indent(indent, alignment);
|
| 411 |
+
return true;
|
| 412 |
+
}
|
| 413 |
+
|
| 414 |
+
this.current_line.set_indent();
|
| 415 |
+
return false;
|
| 416 |
+
};
|
| 417 |
+
|
| 418 |
+
Output.prototype.add_raw_token = function(token) {
|
| 419 |
+
for (var x = 0; x < token.newlines; x++) {
|
| 420 |
+
this.__add_outputline();
|
| 421 |
+
}
|
| 422 |
+
this.current_line.set_indent(-1);
|
| 423 |
+
this.current_line.push(token.whitespace_before);
|
| 424 |
+
this.current_line.push(token.text);
|
| 425 |
+
this.space_before_token = false;
|
| 426 |
+
this.non_breaking_space = false;
|
| 427 |
+
this.previous_token_wrapped = false;
|
| 428 |
+
};
|
| 429 |
+
|
| 430 |
+
Output.prototype.add_token = function(printable_token) {
|
| 431 |
+
this.__add_space_before_token();
|
| 432 |
+
this.current_line.push(printable_token);
|
| 433 |
+
this.space_before_token = false;
|
| 434 |
+
this.non_breaking_space = false;
|
| 435 |
+
this.previous_token_wrapped = this.current_line._allow_wrap();
|
| 436 |
+
};
|
| 437 |
+
|
| 438 |
+
Output.prototype.__add_space_before_token = function() {
|
| 439 |
+
if (this.space_before_token && !this.just_added_newline()) {
|
| 440 |
+
if (!this.non_breaking_space) {
|
| 441 |
+
this.set_wrap_point();
|
| 442 |
+
}
|
| 443 |
+
this.current_line.push(' ');
|
| 444 |
+
}
|
| 445 |
+
};
|
| 446 |
+
|
| 447 |
+
Output.prototype.remove_indent = function(index) {
|
| 448 |
+
var output_length = this.__lines.length;
|
| 449 |
+
while (index < output_length) {
|
| 450 |
+
this.__lines[index]._remove_indent();
|
| 451 |
+
index++;
|
| 452 |
+
}
|
| 453 |
+
this.current_line._remove_wrap_indent();
|
| 454 |
+
};
|
| 455 |
+
|
| 456 |
+
Output.prototype.trim = function(eat_newlines) {
|
| 457 |
+
eat_newlines = (eat_newlines === undefined) ? false : eat_newlines;
|
| 458 |
+
|
| 459 |
+
this.current_line.trim();
|
| 460 |
+
|
| 461 |
+
while (eat_newlines && this.__lines.length > 1 &&
|
| 462 |
+
this.current_line.is_empty()) {
|
| 463 |
+
this.__lines.pop();
|
| 464 |
+
this.current_line = this.__lines[this.__lines.length - 1];
|
| 465 |
+
this.current_line.trim();
|
| 466 |
+
}
|
| 467 |
+
|
| 468 |
+
this.previous_line = this.__lines.length > 1 ?
|
| 469 |
+
this.__lines[this.__lines.length - 2] : null;
|
| 470 |
+
};
|
| 471 |
+
|
| 472 |
+
Output.prototype.just_added_newline = function() {
|
| 473 |
+
return this.current_line.is_empty();
|
| 474 |
+
};
|
| 475 |
+
|
| 476 |
+
Output.prototype.just_added_blankline = function() {
|
| 477 |
+
return this.is_empty() ||
|
| 478 |
+
(this.current_line.is_empty() && this.previous_line.is_empty());
|
| 479 |
+
};
|
| 480 |
+
|
| 481 |
+
Output.prototype.ensure_empty_line_above = function(starts_with, ends_with) {
|
| 482 |
+
var index = this.__lines.length - 2;
|
| 483 |
+
while (index >= 0) {
|
| 484 |
+
var potentialEmptyLine = this.__lines[index];
|
| 485 |
+
if (potentialEmptyLine.is_empty()) {
|
| 486 |
+
break;
|
| 487 |
+
} else if (potentialEmptyLine.item(0).indexOf(starts_with) !== 0 &&
|
| 488 |
+
potentialEmptyLine.item(-1) !== ends_with) {
|
| 489 |
+
this.__lines.splice(index + 1, 0, new OutputLine(this));
|
| 490 |
+
this.previous_line = this.__lines[this.__lines.length - 2];
|
| 491 |
+
break;
|
| 492 |
+
}
|
| 493 |
+
index--;
|
| 494 |
+
}
|
| 495 |
+
};
|
| 496 |
+
|
| 497 |
+
module.exports.Output = Output;
|
| 498 |
+
|
| 499 |
+
|
| 500 |
+
/***/ }),
|
| 501 |
+
/* 3 */,
|
| 502 |
+
/* 4 */,
|
| 503 |
+
/* 5 */,
|
| 504 |
+
/* 6 */
|
| 505 |
+
/***/ (function(module) {
|
| 506 |
+
|
| 507 |
+
/*jshint node:true */
|
| 508 |
+
/*
|
| 509 |
+
|
| 510 |
+
The MIT License (MIT)
|
| 511 |
+
|
| 512 |
+
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
|
| 513 |
+
|
| 514 |
+
Permission is hereby granted, free of charge, to any person
|
| 515 |
+
obtaining a copy of this software and associated documentation files
|
| 516 |
+
(the "Software"), to deal in the Software without restriction,
|
| 517 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 518 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 519 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 520 |
+
subject to the following conditions:
|
| 521 |
+
|
| 522 |
+
The above copyright notice and this permission notice shall be
|
| 523 |
+
included in all copies or substantial portions of the Software.
|
| 524 |
+
|
| 525 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 526 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 527 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 528 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 529 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 530 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 531 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 532 |
+
SOFTWARE.
|
| 533 |
+
*/
|
| 534 |
+
|
| 535 |
+
|
| 536 |
+
|
| 537 |
+
function Options(options, merge_child_field) {
|
| 538 |
+
this.raw_options = _mergeOpts(options, merge_child_field);
|
| 539 |
+
|
| 540 |
+
// Support passing the source text back with no change
|
| 541 |
+
this.disabled = this._get_boolean('disabled');
|
| 542 |
+
|
| 543 |
+
this.eol = this._get_characters('eol', 'auto');
|
| 544 |
+
this.end_with_newline = this._get_boolean('end_with_newline');
|
| 545 |
+
this.indent_size = this._get_number('indent_size', 4);
|
| 546 |
+
this.indent_char = this._get_characters('indent_char', ' ');
|
| 547 |
+
this.indent_level = this._get_number('indent_level');
|
| 548 |
+
|
| 549 |
+
this.preserve_newlines = this._get_boolean('preserve_newlines', true);
|
| 550 |
+
this.max_preserve_newlines = this._get_number('max_preserve_newlines', 32786);
|
| 551 |
+
if (!this.preserve_newlines) {
|
| 552 |
+
this.max_preserve_newlines = 0;
|
| 553 |
+
}
|
| 554 |
+
|
| 555 |
+
this.indent_with_tabs = this._get_boolean('indent_with_tabs', this.indent_char === '\t');
|
| 556 |
+
if (this.indent_with_tabs) {
|
| 557 |
+
this.indent_char = '\t';
|
| 558 |
+
|
| 559 |
+
// indent_size behavior changed after 1.8.6
|
| 560 |
+
// It used to be that indent_size would be
|
| 561 |
+
// set to 1 for indent_with_tabs. That is no longer needed and
|
| 562 |
+
// actually doesn't make sense - why not use spaces? Further,
|
| 563 |
+
// that might produce unexpected behavior - tabs being used
|
| 564 |
+
// for single-column alignment. So, when indent_with_tabs is true
|
| 565 |
+
// and indent_size is 1, reset indent_size to 4.
|
| 566 |
+
if (this.indent_size === 1) {
|
| 567 |
+
this.indent_size = 4;
|
| 568 |
+
}
|
| 569 |
+
}
|
| 570 |
+
|
| 571 |
+
// Backwards compat with 1.3.x
|
| 572 |
+
this.wrap_line_length = this._get_number('wrap_line_length', this._get_number('max_char'));
|
| 573 |
+
|
| 574 |
+
this.indent_empty_lines = this._get_boolean('indent_empty_lines');
|
| 575 |
+
|
| 576 |
+
// valid templating languages ['django', 'erb', 'handlebars', 'php', 'smarty', 'angular']
|
| 577 |
+
// For now, 'auto' = all off for javascript, all except angular on for html (and inline javascript/css).
|
| 578 |
+
// other values ignored
|
| 579 |
+
this.templating = this._get_selection_list('templating', ['auto', 'none', 'angular', 'django', 'erb', 'handlebars', 'php', 'smarty'], ['auto']);
|
| 580 |
+
}
|
| 581 |
+
|
| 582 |
+
Options.prototype._get_array = function(name, default_value) {
|
| 583 |
+
var option_value = this.raw_options[name];
|
| 584 |
+
var result = default_value || [];
|
| 585 |
+
if (typeof option_value === 'object') {
|
| 586 |
+
if (option_value !== null && typeof option_value.concat === 'function') {
|
| 587 |
+
result = option_value.concat();
|
| 588 |
+
}
|
| 589 |
+
} else if (typeof option_value === 'string') {
|
| 590 |
+
result = option_value.split(/[^a-zA-Z0-9_\/\-]+/);
|
| 591 |
+
}
|
| 592 |
+
return result;
|
| 593 |
+
};
|
| 594 |
+
|
| 595 |
+
Options.prototype._get_boolean = function(name, default_value) {
|
| 596 |
+
var option_value = this.raw_options[name];
|
| 597 |
+
var result = option_value === undefined ? !!default_value : !!option_value;
|
| 598 |
+
return result;
|
| 599 |
+
};
|
| 600 |
+
|
| 601 |
+
Options.prototype._get_characters = function(name, default_value) {
|
| 602 |
+
var option_value = this.raw_options[name];
|
| 603 |
+
var result = default_value || '';
|
| 604 |
+
if (typeof option_value === 'string') {
|
| 605 |
+
result = option_value.replace(/\\r/, '\r').replace(/\\n/, '\n').replace(/\\t/, '\t');
|
| 606 |
+
}
|
| 607 |
+
return result;
|
| 608 |
+
};
|
| 609 |
+
|
| 610 |
+
Options.prototype._get_number = function(name, default_value) {
|
| 611 |
+
var option_value = this.raw_options[name];
|
| 612 |
+
default_value = parseInt(default_value, 10);
|
| 613 |
+
if (isNaN(default_value)) {
|
| 614 |
+
default_value = 0;
|
| 615 |
+
}
|
| 616 |
+
var result = parseInt(option_value, 10);
|
| 617 |
+
if (isNaN(result)) {
|
| 618 |
+
result = default_value;
|
| 619 |
+
}
|
| 620 |
+
return result;
|
| 621 |
+
};
|
| 622 |
+
|
| 623 |
+
Options.prototype._get_selection = function(name, selection_list, default_value) {
|
| 624 |
+
var result = this._get_selection_list(name, selection_list, default_value);
|
| 625 |
+
if (result.length !== 1) {
|
| 626 |
+
throw new Error(
|
| 627 |
+
"Invalid Option Value: The option '" + name + "' can only be one of the following values:\n" +
|
| 628 |
+
selection_list + "\nYou passed in: '" + this.raw_options[name] + "'");
|
| 629 |
+
}
|
| 630 |
+
|
| 631 |
+
return result[0];
|
| 632 |
+
};
|
| 633 |
+
|
| 634 |
+
|
| 635 |
+
Options.prototype._get_selection_list = function(name, selection_list, default_value) {
|
| 636 |
+
if (!selection_list || selection_list.length === 0) {
|
| 637 |
+
throw new Error("Selection list cannot be empty.");
|
| 638 |
+
}
|
| 639 |
+
|
| 640 |
+
default_value = default_value || [selection_list[0]];
|
| 641 |
+
if (!this._is_valid_selection(default_value, selection_list)) {
|
| 642 |
+
throw new Error("Invalid Default Value!");
|
| 643 |
+
}
|
| 644 |
+
|
| 645 |
+
var result = this._get_array(name, default_value);
|
| 646 |
+
if (!this._is_valid_selection(result, selection_list)) {
|
| 647 |
+
throw new Error(
|
| 648 |
+
"Invalid Option Value: The option '" + name + "' can contain only the following values:\n" +
|
| 649 |
+
selection_list + "\nYou passed in: '" + this.raw_options[name] + "'");
|
| 650 |
+
}
|
| 651 |
+
|
| 652 |
+
return result;
|
| 653 |
+
};
|
| 654 |
+
|
| 655 |
+
Options.prototype._is_valid_selection = function(result, selection_list) {
|
| 656 |
+
return result.length && selection_list.length &&
|
| 657 |
+
!result.some(function(item) { return selection_list.indexOf(item) === -1; });
|
| 658 |
+
};
|
| 659 |
+
|
| 660 |
+
|
| 661 |
+
// merges child options up with the parent options object
|
| 662 |
+
// Example: obj = {a: 1, b: {a: 2}}
|
| 663 |
+
// mergeOpts(obj, 'b')
|
| 664 |
+
//
|
| 665 |
+
// Returns: {a: 2}
|
| 666 |
+
function _mergeOpts(allOptions, childFieldName) {
|
| 667 |
+
var finalOpts = {};
|
| 668 |
+
allOptions = _normalizeOpts(allOptions);
|
| 669 |
+
var name;
|
| 670 |
+
|
| 671 |
+
for (name in allOptions) {
|
| 672 |
+
if (name !== childFieldName) {
|
| 673 |
+
finalOpts[name] = allOptions[name];
|
| 674 |
+
}
|
| 675 |
+
}
|
| 676 |
+
|
| 677 |
+
//merge in the per type settings for the childFieldName
|
| 678 |
+
if (childFieldName && allOptions[childFieldName]) {
|
| 679 |
+
for (name in allOptions[childFieldName]) {
|
| 680 |
+
finalOpts[name] = allOptions[childFieldName][name];
|
| 681 |
+
}
|
| 682 |
+
}
|
| 683 |
+
return finalOpts;
|
| 684 |
+
}
|
| 685 |
+
|
| 686 |
+
function _normalizeOpts(options) {
|
| 687 |
+
var convertedOpts = {};
|
| 688 |
+
var key;
|
| 689 |
+
|
| 690 |
+
for (key in options) {
|
| 691 |
+
var newKey = key.replace(/-/g, "_");
|
| 692 |
+
convertedOpts[newKey] = options[key];
|
| 693 |
+
}
|
| 694 |
+
return convertedOpts;
|
| 695 |
+
}
|
| 696 |
+
|
| 697 |
+
module.exports.Options = Options;
|
| 698 |
+
module.exports.normalizeOpts = _normalizeOpts;
|
| 699 |
+
module.exports.mergeOpts = _mergeOpts;
|
| 700 |
+
|
| 701 |
+
|
| 702 |
+
/***/ }),
|
| 703 |
+
/* 7 */,
|
| 704 |
+
/* 8 */
|
| 705 |
+
/***/ (function(module) {
|
| 706 |
+
|
| 707 |
+
/*jshint node:true */
|
| 708 |
+
/*
|
| 709 |
+
|
| 710 |
+
The MIT License (MIT)
|
| 711 |
+
|
| 712 |
+
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
|
| 713 |
+
|
| 714 |
+
Permission is hereby granted, free of charge, to any person
|
| 715 |
+
obtaining a copy of this software and associated documentation files
|
| 716 |
+
(the "Software"), to deal in the Software without restriction,
|
| 717 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 718 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 719 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 720 |
+
subject to the following conditions:
|
| 721 |
+
|
| 722 |
+
The above copyright notice and this permission notice shall be
|
| 723 |
+
included in all copies or substantial portions of the Software.
|
| 724 |
+
|
| 725 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 726 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 727 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 728 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 729 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 730 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 731 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 732 |
+
SOFTWARE.
|
| 733 |
+
*/
|
| 734 |
+
|
| 735 |
+
|
| 736 |
+
|
| 737 |
+
var regexp_has_sticky = RegExp.prototype.hasOwnProperty('sticky');
|
| 738 |
+
|
| 739 |
+
function InputScanner(input_string) {
|
| 740 |
+
this.__input = input_string || '';
|
| 741 |
+
this.__input_length = this.__input.length;
|
| 742 |
+
this.__position = 0;
|
| 743 |
+
}
|
| 744 |
+
|
| 745 |
+
InputScanner.prototype.restart = function() {
|
| 746 |
+
this.__position = 0;
|
| 747 |
+
};
|
| 748 |
+
|
| 749 |
+
InputScanner.prototype.back = function() {
|
| 750 |
+
if (this.__position > 0) {
|
| 751 |
+
this.__position -= 1;
|
| 752 |
+
}
|
| 753 |
+
};
|
| 754 |
+
|
| 755 |
+
InputScanner.prototype.hasNext = function() {
|
| 756 |
+
return this.__position < this.__input_length;
|
| 757 |
+
};
|
| 758 |
+
|
| 759 |
+
InputScanner.prototype.next = function() {
|
| 760 |
+
var val = null;
|
| 761 |
+
if (this.hasNext()) {
|
| 762 |
+
val = this.__input.charAt(this.__position);
|
| 763 |
+
this.__position += 1;
|
| 764 |
+
}
|
| 765 |
+
return val;
|
| 766 |
+
};
|
| 767 |
+
|
| 768 |
+
InputScanner.prototype.peek = function(index) {
|
| 769 |
+
var val = null;
|
| 770 |
+
index = index || 0;
|
| 771 |
+
index += this.__position;
|
| 772 |
+
if (index >= 0 && index < this.__input_length) {
|
| 773 |
+
val = this.__input.charAt(index);
|
| 774 |
+
}
|
| 775 |
+
return val;
|
| 776 |
+
};
|
| 777 |
+
|
| 778 |
+
// This is a JavaScript only helper function (not in python)
|
| 779 |
+
// Javascript doesn't have a match method
|
| 780 |
+
// and not all implementation support "sticky" flag.
|
| 781 |
+
// If they do not support sticky then both this.match() and this.test() method
|
| 782 |
+
// must get the match and check the index of the match.
|
| 783 |
+
// If sticky is supported and set, this method will use it.
|
| 784 |
+
// Otherwise it will check that global is set, and fall back to the slower method.
|
| 785 |
+
InputScanner.prototype.__match = function(pattern, index) {
|
| 786 |
+
pattern.lastIndex = index;
|
| 787 |
+
var pattern_match = pattern.exec(this.__input);
|
| 788 |
+
|
| 789 |
+
if (pattern_match && !(regexp_has_sticky && pattern.sticky)) {
|
| 790 |
+
if (pattern_match.index !== index) {
|
| 791 |
+
pattern_match = null;
|
| 792 |
+
}
|
| 793 |
+
}
|
| 794 |
+
|
| 795 |
+
return pattern_match;
|
| 796 |
+
};
|
| 797 |
+
|
| 798 |
+
InputScanner.prototype.test = function(pattern, index) {
|
| 799 |
+
index = index || 0;
|
| 800 |
+
index += this.__position;
|
| 801 |
+
|
| 802 |
+
if (index >= 0 && index < this.__input_length) {
|
| 803 |
+
return !!this.__match(pattern, index);
|
| 804 |
+
} else {
|
| 805 |
+
return false;
|
| 806 |
+
}
|
| 807 |
+
};
|
| 808 |
+
|
| 809 |
+
InputScanner.prototype.testChar = function(pattern, index) {
|
| 810 |
+
// test one character regex match
|
| 811 |
+
var val = this.peek(index);
|
| 812 |
+
pattern.lastIndex = 0;
|
| 813 |
+
return val !== null && pattern.test(val);
|
| 814 |
+
};
|
| 815 |
+
|
| 816 |
+
InputScanner.prototype.match = function(pattern) {
|
| 817 |
+
var pattern_match = this.__match(pattern, this.__position);
|
| 818 |
+
if (pattern_match) {
|
| 819 |
+
this.__position += pattern_match[0].length;
|
| 820 |
+
} else {
|
| 821 |
+
pattern_match = null;
|
| 822 |
+
}
|
| 823 |
+
return pattern_match;
|
| 824 |
+
};
|
| 825 |
+
|
| 826 |
+
InputScanner.prototype.read = function(starting_pattern, until_pattern, until_after) {
|
| 827 |
+
var val = '';
|
| 828 |
+
var match;
|
| 829 |
+
if (starting_pattern) {
|
| 830 |
+
match = this.match(starting_pattern);
|
| 831 |
+
if (match) {
|
| 832 |
+
val += match[0];
|
| 833 |
+
}
|
| 834 |
+
}
|
| 835 |
+
if (until_pattern && (match || !starting_pattern)) {
|
| 836 |
+
val += this.readUntil(until_pattern, until_after);
|
| 837 |
+
}
|
| 838 |
+
return val;
|
| 839 |
+
};
|
| 840 |
+
|
| 841 |
+
InputScanner.prototype.readUntil = function(pattern, until_after) {
|
| 842 |
+
var val = '';
|
| 843 |
+
var match_index = this.__position;
|
| 844 |
+
pattern.lastIndex = this.__position;
|
| 845 |
+
var pattern_match = pattern.exec(this.__input);
|
| 846 |
+
if (pattern_match) {
|
| 847 |
+
match_index = pattern_match.index;
|
| 848 |
+
if (until_after) {
|
| 849 |
+
match_index += pattern_match[0].length;
|
| 850 |
+
}
|
| 851 |
+
} else {
|
| 852 |
+
match_index = this.__input_length;
|
| 853 |
+
}
|
| 854 |
+
|
| 855 |
+
val = this.__input.substring(this.__position, match_index);
|
| 856 |
+
this.__position = match_index;
|
| 857 |
+
return val;
|
| 858 |
+
};
|
| 859 |
+
|
| 860 |
+
InputScanner.prototype.readUntilAfter = function(pattern) {
|
| 861 |
+
return this.readUntil(pattern, true);
|
| 862 |
+
};
|
| 863 |
+
|
| 864 |
+
InputScanner.prototype.get_regexp = function(pattern, match_from) {
|
| 865 |
+
var result = null;
|
| 866 |
+
var flags = 'g';
|
| 867 |
+
if (match_from && regexp_has_sticky) {
|
| 868 |
+
flags = 'y';
|
| 869 |
+
}
|
| 870 |
+
// strings are converted to regexp
|
| 871 |
+
if (typeof pattern === "string" && pattern !== '') {
|
| 872 |
+
// result = new RegExp(pattern.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'), flags);
|
| 873 |
+
result = new RegExp(pattern, flags);
|
| 874 |
+
} else if (pattern) {
|
| 875 |
+
result = new RegExp(pattern.source, flags);
|
| 876 |
+
}
|
| 877 |
+
return result;
|
| 878 |
+
};
|
| 879 |
+
|
| 880 |
+
InputScanner.prototype.get_literal_regexp = function(literal_string) {
|
| 881 |
+
return RegExp(literal_string.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'));
|
| 882 |
+
};
|
| 883 |
+
|
| 884 |
+
/* css beautifier legacy helpers */
|
| 885 |
+
InputScanner.prototype.peekUntilAfter = function(pattern) {
|
| 886 |
+
var start = this.__position;
|
| 887 |
+
var val = this.readUntilAfter(pattern);
|
| 888 |
+
this.__position = start;
|
| 889 |
+
return val;
|
| 890 |
+
};
|
| 891 |
+
|
| 892 |
+
InputScanner.prototype.lookBack = function(testVal) {
|
| 893 |
+
var start = this.__position - 1;
|
| 894 |
+
return start >= testVal.length && this.__input.substring(start - testVal.length, start)
|
| 895 |
+
.toLowerCase() === testVal;
|
| 896 |
+
};
|
| 897 |
+
|
| 898 |
+
module.exports.InputScanner = InputScanner;
|
| 899 |
+
|
| 900 |
+
|
| 901 |
+
/***/ }),
|
| 902 |
+
/* 9 */,
|
| 903 |
+
/* 10 */,
|
| 904 |
+
/* 11 */,
|
| 905 |
+
/* 12 */,
|
| 906 |
+
/* 13 */
|
| 907 |
+
/***/ (function(module) {
|
| 908 |
+
|
| 909 |
+
/*jshint node:true */
|
| 910 |
+
/*
|
| 911 |
+
|
| 912 |
+
The MIT License (MIT)
|
| 913 |
+
|
| 914 |
+
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
|
| 915 |
+
|
| 916 |
+
Permission is hereby granted, free of charge, to any person
|
| 917 |
+
obtaining a copy of this software and associated documentation files
|
| 918 |
+
(the "Software"), to deal in the Software without restriction,
|
| 919 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 920 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 921 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 922 |
+
subject to the following conditions:
|
| 923 |
+
|
| 924 |
+
The above copyright notice and this permission notice shall be
|
| 925 |
+
included in all copies or substantial portions of the Software.
|
| 926 |
+
|
| 927 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 928 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 929 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 930 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 931 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 932 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 933 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 934 |
+
SOFTWARE.
|
| 935 |
+
*/
|
| 936 |
+
|
| 937 |
+
|
| 938 |
+
|
| 939 |
+
function Directives(start_block_pattern, end_block_pattern) {
|
| 940 |
+
start_block_pattern = typeof start_block_pattern === 'string' ? start_block_pattern : start_block_pattern.source;
|
| 941 |
+
end_block_pattern = typeof end_block_pattern === 'string' ? end_block_pattern : end_block_pattern.source;
|
| 942 |
+
this.__directives_block_pattern = new RegExp(start_block_pattern + / beautify( \w+[:]\w+)+ /.source + end_block_pattern, 'g');
|
| 943 |
+
this.__directive_pattern = / (\w+)[:](\w+)/g;
|
| 944 |
+
|
| 945 |
+
this.__directives_end_ignore_pattern = new RegExp(start_block_pattern + /\sbeautify\signore:end\s/.source + end_block_pattern, 'g');
|
| 946 |
+
}
|
| 947 |
+
|
| 948 |
+
Directives.prototype.get_directives = function(text) {
|
| 949 |
+
if (!text.match(this.__directives_block_pattern)) {
|
| 950 |
+
return null;
|
| 951 |
+
}
|
| 952 |
+
|
| 953 |
+
var directives = {};
|
| 954 |
+
this.__directive_pattern.lastIndex = 0;
|
| 955 |
+
var directive_match = this.__directive_pattern.exec(text);
|
| 956 |
+
|
| 957 |
+
while (directive_match) {
|
| 958 |
+
directives[directive_match[1]] = directive_match[2];
|
| 959 |
+
directive_match = this.__directive_pattern.exec(text);
|
| 960 |
+
}
|
| 961 |
+
|
| 962 |
+
return directives;
|
| 963 |
+
};
|
| 964 |
+
|
| 965 |
+
Directives.prototype.readIgnored = function(input) {
|
| 966 |
+
return input.readUntilAfter(this.__directives_end_ignore_pattern);
|
| 967 |
+
};
|
| 968 |
+
|
| 969 |
+
|
| 970 |
+
module.exports.Directives = Directives;
|
| 971 |
+
|
| 972 |
+
|
| 973 |
+
/***/ }),
|
| 974 |
+
/* 14 */,
|
| 975 |
+
/* 15 */
|
| 976 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
| 977 |
+
|
| 978 |
+
/*jshint node:true */
|
| 979 |
+
/*
|
| 980 |
+
|
| 981 |
+
The MIT License (MIT)
|
| 982 |
+
|
| 983 |
+
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
|
| 984 |
+
|
| 985 |
+
Permission is hereby granted, free of charge, to any person
|
| 986 |
+
obtaining a copy of this software and associated documentation files
|
| 987 |
+
(the "Software"), to deal in the Software without restriction,
|
| 988 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 989 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 990 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 991 |
+
subject to the following conditions:
|
| 992 |
+
|
| 993 |
+
The above copyright notice and this permission notice shall be
|
| 994 |
+
included in all copies or substantial portions of the Software.
|
| 995 |
+
|
| 996 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 997 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 998 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 999 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 1000 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 1001 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 1002 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 1003 |
+
SOFTWARE.
|
| 1004 |
+
*/
|
| 1005 |
+
|
| 1006 |
+
|
| 1007 |
+
|
| 1008 |
+
var Beautifier = (__webpack_require__(16).Beautifier),
|
| 1009 |
+
Options = (__webpack_require__(17).Options);
|
| 1010 |
+
|
| 1011 |
+
function css_beautify(source_text, options) {
|
| 1012 |
+
var beautifier = new Beautifier(source_text, options);
|
| 1013 |
+
return beautifier.beautify();
|
| 1014 |
+
}
|
| 1015 |
+
|
| 1016 |
+
module.exports = css_beautify;
|
| 1017 |
+
module.exports.defaultOptions = function() {
|
| 1018 |
+
return new Options();
|
| 1019 |
+
};
|
| 1020 |
+
|
| 1021 |
+
|
| 1022 |
+
/***/ }),
|
| 1023 |
+
/* 16 */
|
| 1024 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
| 1025 |
+
|
| 1026 |
+
/*jshint node:true */
|
| 1027 |
+
/*
|
| 1028 |
+
|
| 1029 |
+
The MIT License (MIT)
|
| 1030 |
+
|
| 1031 |
+
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
|
| 1032 |
+
|
| 1033 |
+
Permission is hereby granted, free of charge, to any person
|
| 1034 |
+
obtaining a copy of this software and associated documentation files
|
| 1035 |
+
(the "Software"), to deal in the Software without restriction,
|
| 1036 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 1037 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 1038 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 1039 |
+
subject to the following conditions:
|
| 1040 |
+
|
| 1041 |
+
The above copyright notice and this permission notice shall be
|
| 1042 |
+
included in all copies or substantial portions of the Software.
|
| 1043 |
+
|
| 1044 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 1045 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 1046 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 1047 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 1048 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 1049 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 1050 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 1051 |
+
SOFTWARE.
|
| 1052 |
+
*/
|
| 1053 |
+
|
| 1054 |
+
|
| 1055 |
+
|
| 1056 |
+
var Options = (__webpack_require__(17).Options);
|
| 1057 |
+
var Output = (__webpack_require__(2).Output);
|
| 1058 |
+
var InputScanner = (__webpack_require__(8).InputScanner);
|
| 1059 |
+
var Directives = (__webpack_require__(13).Directives);
|
| 1060 |
+
|
| 1061 |
+
var directives_core = new Directives(/\/\*/, /\*\//);
|
| 1062 |
+
|
| 1063 |
+
var lineBreak = /\r\n|[\r\n]/;
|
| 1064 |
+
var allLineBreaks = /\r\n|[\r\n]/g;
|
| 1065 |
+
|
| 1066 |
+
// tokenizer
|
| 1067 |
+
var whitespaceChar = /\s/;
|
| 1068 |
+
var whitespacePattern = /(?:\s|\n)+/g;
|
| 1069 |
+
var block_comment_pattern = /\/\*(?:[\s\S]*?)((?:\*\/)|$)/g;
|
| 1070 |
+
var comment_pattern = /\/\/(?:[^\n\r\u2028\u2029]*)/g;
|
| 1071 |
+
|
| 1072 |
+
function Beautifier(source_text, options) {
|
| 1073 |
+
this._source_text = source_text || '';
|
| 1074 |
+
// Allow the setting of language/file-type specific options
|
| 1075 |
+
// with inheritance of overall settings
|
| 1076 |
+
this._options = new Options(options);
|
| 1077 |
+
this._ch = null;
|
| 1078 |
+
this._input = null;
|
| 1079 |
+
|
| 1080 |
+
// https://developer.mozilla.org/en-US/docs/Web/CSS/At-rule
|
| 1081 |
+
this.NESTED_AT_RULE = {
|
| 1082 |
+
"page": true,
|
| 1083 |
+
"font-face": true,
|
| 1084 |
+
"keyframes": true,
|
| 1085 |
+
// also in CONDITIONAL_GROUP_RULE below
|
| 1086 |
+
"media": true,
|
| 1087 |
+
"supports": true,
|
| 1088 |
+
"document": true
|
| 1089 |
+
};
|
| 1090 |
+
this.CONDITIONAL_GROUP_RULE = {
|
| 1091 |
+
"media": true,
|
| 1092 |
+
"supports": true,
|
| 1093 |
+
"document": true
|
| 1094 |
+
};
|
| 1095 |
+
this.NON_SEMICOLON_NEWLINE_PROPERTY = [
|
| 1096 |
+
"grid-template-areas",
|
| 1097 |
+
"grid-template"
|
| 1098 |
+
];
|
| 1099 |
+
|
| 1100 |
+
}
|
| 1101 |
+
|
| 1102 |
+
Beautifier.prototype.eatString = function(endChars) {
|
| 1103 |
+
var result = '';
|
| 1104 |
+
this._ch = this._input.next();
|
| 1105 |
+
while (this._ch) {
|
| 1106 |
+
result += this._ch;
|
| 1107 |
+
if (this._ch === "\\") {
|
| 1108 |
+
result += this._input.next();
|
| 1109 |
+
} else if (endChars.indexOf(this._ch) !== -1 || this._ch === "\n") {
|
| 1110 |
+
break;
|
| 1111 |
+
}
|
| 1112 |
+
this._ch = this._input.next();
|
| 1113 |
+
}
|
| 1114 |
+
return result;
|
| 1115 |
+
};
|
| 1116 |
+
|
| 1117 |
+
// Skips any white space in the source text from the current position.
|
| 1118 |
+
// When allowAtLeastOneNewLine is true, will output new lines for each
|
| 1119 |
+
// newline character found; if the user has preserve_newlines off, only
|
| 1120 |
+
// the first newline will be output
|
| 1121 |
+
Beautifier.prototype.eatWhitespace = function(allowAtLeastOneNewLine) {
|
| 1122 |
+
var result = whitespaceChar.test(this._input.peek());
|
| 1123 |
+
var newline_count = 0;
|
| 1124 |
+
while (whitespaceChar.test(this._input.peek())) {
|
| 1125 |
+
this._ch = this._input.next();
|
| 1126 |
+
if (allowAtLeastOneNewLine && this._ch === '\n') {
|
| 1127 |
+
if (newline_count === 0 || newline_count < this._options.max_preserve_newlines) {
|
| 1128 |
+
newline_count++;
|
| 1129 |
+
this._output.add_new_line(true);
|
| 1130 |
+
}
|
| 1131 |
+
}
|
| 1132 |
+
}
|
| 1133 |
+
return result;
|
| 1134 |
+
};
|
| 1135 |
+
|
| 1136 |
+
// Nested pseudo-class if we are insideRule
|
| 1137 |
+
// and the next special character found opens
|
| 1138 |
+
// a new block
|
| 1139 |
+
Beautifier.prototype.foundNestedPseudoClass = function() {
|
| 1140 |
+
var openParen = 0;
|
| 1141 |
+
var i = 1;
|
| 1142 |
+
var ch = this._input.peek(i);
|
| 1143 |
+
while (ch) {
|
| 1144 |
+
if (ch === "{") {
|
| 1145 |
+
return true;
|
| 1146 |
+
} else if (ch === '(') {
|
| 1147 |
+
// pseudoclasses can contain ()
|
| 1148 |
+
openParen += 1;
|
| 1149 |
+
} else if (ch === ')') {
|
| 1150 |
+
if (openParen === 0) {
|
| 1151 |
+
return false;
|
| 1152 |
+
}
|
| 1153 |
+
openParen -= 1;
|
| 1154 |
+
} else if (ch === ";" || ch === "}") {
|
| 1155 |
+
return false;
|
| 1156 |
+
}
|
| 1157 |
+
i++;
|
| 1158 |
+
ch = this._input.peek(i);
|
| 1159 |
+
}
|
| 1160 |
+
return false;
|
| 1161 |
+
};
|
| 1162 |
+
|
| 1163 |
+
Beautifier.prototype.print_string = function(output_string) {
|
| 1164 |
+
this._output.set_indent(this._indentLevel);
|
| 1165 |
+
this._output.non_breaking_space = true;
|
| 1166 |
+
this._output.add_token(output_string);
|
| 1167 |
+
};
|
| 1168 |
+
|
| 1169 |
+
Beautifier.prototype.preserveSingleSpace = function(isAfterSpace) {
|
| 1170 |
+
if (isAfterSpace) {
|
| 1171 |
+
this._output.space_before_token = true;
|
| 1172 |
+
}
|
| 1173 |
+
};
|
| 1174 |
+
|
| 1175 |
+
Beautifier.prototype.indent = function() {
|
| 1176 |
+
this._indentLevel++;
|
| 1177 |
+
};
|
| 1178 |
+
|
| 1179 |
+
Beautifier.prototype.outdent = function() {
|
| 1180 |
+
if (this._indentLevel > 0) {
|
| 1181 |
+
this._indentLevel--;
|
| 1182 |
+
}
|
| 1183 |
+
};
|
| 1184 |
+
|
| 1185 |
+
/*_____________________--------------------_____________________*/
|
| 1186 |
+
|
| 1187 |
+
Beautifier.prototype.beautify = function() {
|
| 1188 |
+
if (this._options.disabled) {
|
| 1189 |
+
return this._source_text;
|
| 1190 |
+
}
|
| 1191 |
+
|
| 1192 |
+
var source_text = this._source_text;
|
| 1193 |
+
var eol = this._options.eol;
|
| 1194 |
+
if (eol === 'auto') {
|
| 1195 |
+
eol = '\n';
|
| 1196 |
+
if (source_text && lineBreak.test(source_text || '')) {
|
| 1197 |
+
eol = source_text.match(lineBreak)[0];
|
| 1198 |
+
}
|
| 1199 |
+
}
|
| 1200 |
+
|
| 1201 |
+
|
| 1202 |
+
// HACK: newline parsing inconsistent. This brute force normalizes the this._input.
|
| 1203 |
+
source_text = source_text.replace(allLineBreaks, '\n');
|
| 1204 |
+
|
| 1205 |
+
// reset
|
| 1206 |
+
var baseIndentString = source_text.match(/^[\t ]*/)[0];
|
| 1207 |
+
|
| 1208 |
+
this._output = new Output(this._options, baseIndentString);
|
| 1209 |
+
this._input = new InputScanner(source_text);
|
| 1210 |
+
this._indentLevel = 0;
|
| 1211 |
+
this._nestedLevel = 0;
|
| 1212 |
+
|
| 1213 |
+
this._ch = null;
|
| 1214 |
+
var parenLevel = 0;
|
| 1215 |
+
|
| 1216 |
+
var insideRule = false;
|
| 1217 |
+
// This is the value side of a property value pair (blue in the following ex)
|
| 1218 |
+
// label { content: blue }
|
| 1219 |
+
var insidePropertyValue = false;
|
| 1220 |
+
var enteringConditionalGroup = false;
|
| 1221 |
+
var insideNonNestedAtRule = false;
|
| 1222 |
+
var insideScssMap = false;
|
| 1223 |
+
var topCharacter = this._ch;
|
| 1224 |
+
var insideNonSemiColonValues = false;
|
| 1225 |
+
var whitespace;
|
| 1226 |
+
var isAfterSpace;
|
| 1227 |
+
var previous_ch;
|
| 1228 |
+
|
| 1229 |
+
while (true) {
|
| 1230 |
+
whitespace = this._input.read(whitespacePattern);
|
| 1231 |
+
isAfterSpace = whitespace !== '';
|
| 1232 |
+
previous_ch = topCharacter;
|
| 1233 |
+
this._ch = this._input.next();
|
| 1234 |
+
if (this._ch === '\\' && this._input.hasNext()) {
|
| 1235 |
+
this._ch += this._input.next();
|
| 1236 |
+
}
|
| 1237 |
+
topCharacter = this._ch;
|
| 1238 |
+
|
| 1239 |
+
if (!this._ch) {
|
| 1240 |
+
break;
|
| 1241 |
+
} else if (this._ch === '/' && this._input.peek() === '*') {
|
| 1242 |
+
// /* css comment */
|
| 1243 |
+
// Always start block comments on a new line.
|
| 1244 |
+
// This handles scenarios where a block comment immediately
|
| 1245 |
+
// follows a property definition on the same line or where
|
| 1246 |
+
// minified code is being beautified.
|
| 1247 |
+
this._output.add_new_line();
|
| 1248 |
+
this._input.back();
|
| 1249 |
+
|
| 1250 |
+
var comment = this._input.read(block_comment_pattern);
|
| 1251 |
+
|
| 1252 |
+
// Handle ignore directive
|
| 1253 |
+
var directives = directives_core.get_directives(comment);
|
| 1254 |
+
if (directives && directives.ignore === 'start') {
|
| 1255 |
+
comment += directives_core.readIgnored(this._input);
|
| 1256 |
+
}
|
| 1257 |
+
|
| 1258 |
+
this.print_string(comment);
|
| 1259 |
+
|
| 1260 |
+
// Ensures any new lines following the comment are preserved
|
| 1261 |
+
this.eatWhitespace(true);
|
| 1262 |
+
|
| 1263 |
+
// Block comments are followed by a new line so they don't
|
| 1264 |
+
// share a line with other properties
|
| 1265 |
+
this._output.add_new_line();
|
| 1266 |
+
} else if (this._ch === '/' && this._input.peek() === '/') {
|
| 1267 |
+
// // single line comment
|
| 1268 |
+
// Preserves the space before a comment
|
| 1269 |
+
// on the same line as a rule
|
| 1270 |
+
this._output.space_before_token = true;
|
| 1271 |
+
this._input.back();
|
| 1272 |
+
this.print_string(this._input.read(comment_pattern));
|
| 1273 |
+
|
| 1274 |
+
// Ensures any new lines following the comment are preserved
|
| 1275 |
+
this.eatWhitespace(true);
|
| 1276 |
+
} else if (this._ch === '$') {
|
| 1277 |
+
this.preserveSingleSpace(isAfterSpace);
|
| 1278 |
+
|
| 1279 |
+
this.print_string(this._ch);
|
| 1280 |
+
|
| 1281 |
+
// strip trailing space, if present, for hash property checks
|
| 1282 |
+
var variable = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
|
| 1283 |
+
|
| 1284 |
+
if (variable.match(/[ :]$/)) {
|
| 1285 |
+
// we have a variable or pseudo-class, add it and insert one space before continuing
|
| 1286 |
+
variable = this.eatString(": ").replace(/\s+$/, '');
|
| 1287 |
+
this.print_string(variable);
|
| 1288 |
+
this._output.space_before_token = true;
|
| 1289 |
+
}
|
| 1290 |
+
|
| 1291 |
+
// might be sass variable
|
| 1292 |
+
if (parenLevel === 0 && variable.indexOf(':') !== -1) {
|
| 1293 |
+
insidePropertyValue = true;
|
| 1294 |
+
this.indent();
|
| 1295 |
+
}
|
| 1296 |
+
} else if (this._ch === '@') {
|
| 1297 |
+
this.preserveSingleSpace(isAfterSpace);
|
| 1298 |
+
|
| 1299 |
+
// deal with less property mixins @{...}
|
| 1300 |
+
if (this._input.peek() === '{') {
|
| 1301 |
+
this.print_string(this._ch + this.eatString('}'));
|
| 1302 |
+
} else {
|
| 1303 |
+
this.print_string(this._ch);
|
| 1304 |
+
|
| 1305 |
+
// strip trailing space, if present, for hash property checks
|
| 1306 |
+
var variableOrRule = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
|
| 1307 |
+
|
| 1308 |
+
if (variableOrRule.match(/[ :]$/)) {
|
| 1309 |
+
// we have a variable or pseudo-class, add it and insert one space before continuing
|
| 1310 |
+
variableOrRule = this.eatString(": ").replace(/\s+$/, '');
|
| 1311 |
+
this.print_string(variableOrRule);
|
| 1312 |
+
this._output.space_before_token = true;
|
| 1313 |
+
}
|
| 1314 |
+
|
| 1315 |
+
// might be less variable
|
| 1316 |
+
if (parenLevel === 0 && variableOrRule.indexOf(':') !== -1) {
|
| 1317 |
+
insidePropertyValue = true;
|
| 1318 |
+
this.indent();
|
| 1319 |
+
|
| 1320 |
+
// might be a nesting at-rule
|
| 1321 |
+
} else if (variableOrRule in this.NESTED_AT_RULE) {
|
| 1322 |
+
this._nestedLevel += 1;
|
| 1323 |
+
if (variableOrRule in this.CONDITIONAL_GROUP_RULE) {
|
| 1324 |
+
enteringConditionalGroup = true;
|
| 1325 |
+
}
|
| 1326 |
+
|
| 1327 |
+
// might be a non-nested at-rule
|
| 1328 |
+
} else if (parenLevel === 0 && !insidePropertyValue) {
|
| 1329 |
+
insideNonNestedAtRule = true;
|
| 1330 |
+
}
|
| 1331 |
+
}
|
| 1332 |
+
} else if (this._ch === '#' && this._input.peek() === '{') {
|
| 1333 |
+
this.preserveSingleSpace(isAfterSpace);
|
| 1334 |
+
this.print_string(this._ch + this.eatString('}'));
|
| 1335 |
+
} else if (this._ch === '{') {
|
| 1336 |
+
if (insidePropertyValue) {
|
| 1337 |
+
insidePropertyValue = false;
|
| 1338 |
+
this.outdent();
|
| 1339 |
+
}
|
| 1340 |
+
|
| 1341 |
+
// non nested at rule becomes nested
|
| 1342 |
+
insideNonNestedAtRule = false;
|
| 1343 |
+
|
| 1344 |
+
// when entering conditional groups, only rulesets are allowed
|
| 1345 |
+
if (enteringConditionalGroup) {
|
| 1346 |
+
enteringConditionalGroup = false;
|
| 1347 |
+
insideRule = (this._indentLevel >= this._nestedLevel);
|
| 1348 |
+
} else {
|
| 1349 |
+
// otherwise, declarations are also allowed
|
| 1350 |
+
insideRule = (this._indentLevel >= this._nestedLevel - 1);
|
| 1351 |
+
}
|
| 1352 |
+
if (this._options.newline_between_rules && insideRule) {
|
| 1353 |
+
if (this._output.previous_line && this._output.previous_line.item(-1) !== '{') {
|
| 1354 |
+
this._output.ensure_empty_line_above('/', ',');
|
| 1355 |
+
}
|
| 1356 |
+
}
|
| 1357 |
+
|
| 1358 |
+
this._output.space_before_token = true;
|
| 1359 |
+
|
| 1360 |
+
// The difference in print_string and indent order is necessary to indent the '{' correctly
|
| 1361 |
+
if (this._options.brace_style === 'expand') {
|
| 1362 |
+
this._output.add_new_line();
|
| 1363 |
+
this.print_string(this._ch);
|
| 1364 |
+
this.indent();
|
| 1365 |
+
this._output.set_indent(this._indentLevel);
|
| 1366 |
+
} else {
|
| 1367 |
+
// inside mixin and first param is object
|
| 1368 |
+
if (previous_ch === '(') {
|
| 1369 |
+
this._output.space_before_token = false;
|
| 1370 |
+
} else if (previous_ch !== ',') {
|
| 1371 |
+
this.indent();
|
| 1372 |
+
}
|
| 1373 |
+
this.print_string(this._ch);
|
| 1374 |
+
}
|
| 1375 |
+
|
| 1376 |
+
this.eatWhitespace(true);
|
| 1377 |
+
this._output.add_new_line();
|
| 1378 |
+
} else if (this._ch === '}') {
|
| 1379 |
+
this.outdent();
|
| 1380 |
+
this._output.add_new_line();
|
| 1381 |
+
if (previous_ch === '{') {
|
| 1382 |
+
this._output.trim(true);
|
| 1383 |
+
}
|
| 1384 |
+
|
| 1385 |
+
if (insidePropertyValue) {
|
| 1386 |
+
this.outdent();
|
| 1387 |
+
insidePropertyValue = false;
|
| 1388 |
+
}
|
| 1389 |
+
this.print_string(this._ch);
|
| 1390 |
+
insideRule = false;
|
| 1391 |
+
if (this._nestedLevel) {
|
| 1392 |
+
this._nestedLevel--;
|
| 1393 |
+
}
|
| 1394 |
+
|
| 1395 |
+
this.eatWhitespace(true);
|
| 1396 |
+
this._output.add_new_line();
|
| 1397 |
+
|
| 1398 |
+
if (this._options.newline_between_rules && !this._output.just_added_blankline()) {
|
| 1399 |
+
if (this._input.peek() !== '}') {
|
| 1400 |
+
this._output.add_new_line(true);
|
| 1401 |
+
}
|
| 1402 |
+
}
|
| 1403 |
+
if (this._input.peek() === ')') {
|
| 1404 |
+
this._output.trim(true);
|
| 1405 |
+
if (this._options.brace_style === "expand") {
|
| 1406 |
+
this._output.add_new_line(true);
|
| 1407 |
+
}
|
| 1408 |
+
}
|
| 1409 |
+
} else if (this._ch === ":") {
|
| 1410 |
+
|
| 1411 |
+
for (var i = 0; i < this.NON_SEMICOLON_NEWLINE_PROPERTY.length; i++) {
|
| 1412 |
+
if (this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[i])) {
|
| 1413 |
+
insideNonSemiColonValues = true;
|
| 1414 |
+
break;
|
| 1415 |
+
}
|
| 1416 |
+
}
|
| 1417 |
+
|
| 1418 |
+
if ((insideRule || enteringConditionalGroup) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !insideNonNestedAtRule && parenLevel === 0) {
|
| 1419 |
+
// 'property: value' delimiter
|
| 1420 |
+
// which could be in a conditional group query
|
| 1421 |
+
|
| 1422 |
+
this.print_string(':');
|
| 1423 |
+
if (!insidePropertyValue) {
|
| 1424 |
+
insidePropertyValue = true;
|
| 1425 |
+
this._output.space_before_token = true;
|
| 1426 |
+
this.eatWhitespace(true);
|
| 1427 |
+
this.indent();
|
| 1428 |
+
}
|
| 1429 |
+
} else {
|
| 1430 |
+
// sass/less parent reference don't use a space
|
| 1431 |
+
// sass nested pseudo-class don't use a space
|
| 1432 |
+
|
| 1433 |
+
// preserve space before pseudoclasses/pseudoelements, as it means "in any child"
|
| 1434 |
+
if (this._input.lookBack(" ")) {
|
| 1435 |
+
this._output.space_before_token = true;
|
| 1436 |
+
}
|
| 1437 |
+
if (this._input.peek() === ":") {
|
| 1438 |
+
// pseudo-element
|
| 1439 |
+
this._ch = this._input.next();
|
| 1440 |
+
this.print_string("::");
|
| 1441 |
+
} else {
|
| 1442 |
+
// pseudo-class
|
| 1443 |
+
this.print_string(':');
|
| 1444 |
+
}
|
| 1445 |
+
}
|
| 1446 |
+
} else if (this._ch === '"' || this._ch === '\'') {
|
| 1447 |
+
var preserveQuoteSpace = previous_ch === '"' || previous_ch === '\'';
|
| 1448 |
+
this.preserveSingleSpace(preserveQuoteSpace || isAfterSpace);
|
| 1449 |
+
this.print_string(this._ch + this.eatString(this._ch));
|
| 1450 |
+
this.eatWhitespace(true);
|
| 1451 |
+
} else if (this._ch === ';') {
|
| 1452 |
+
insideNonSemiColonValues = false;
|
| 1453 |
+
if (parenLevel === 0) {
|
| 1454 |
+
if (insidePropertyValue) {
|
| 1455 |
+
this.outdent();
|
| 1456 |
+
insidePropertyValue = false;
|
| 1457 |
+
}
|
| 1458 |
+
insideNonNestedAtRule = false;
|
| 1459 |
+
this.print_string(this._ch);
|
| 1460 |
+
this.eatWhitespace(true);
|
| 1461 |
+
|
| 1462 |
+
// This maintains single line comments on the same
|
| 1463 |
+
// line. Block comments are also affected, but
|
| 1464 |
+
// a new line is always output before one inside
|
| 1465 |
+
// that section
|
| 1466 |
+
if (this._input.peek() !== '/') {
|
| 1467 |
+
this._output.add_new_line();
|
| 1468 |
+
}
|
| 1469 |
+
} else {
|
| 1470 |
+
this.print_string(this._ch);
|
| 1471 |
+
this.eatWhitespace(true);
|
| 1472 |
+
this._output.space_before_token = true;
|
| 1473 |
+
}
|
| 1474 |
+
} else if (this._ch === '(') { // may be a url
|
| 1475 |
+
if (this._input.lookBack("url")) {
|
| 1476 |
+
this.print_string(this._ch);
|
| 1477 |
+
this.eatWhitespace();
|
| 1478 |
+
parenLevel++;
|
| 1479 |
+
this.indent();
|
| 1480 |
+
this._ch = this._input.next();
|
| 1481 |
+
if (this._ch === ')' || this._ch === '"' || this._ch === '\'') {
|
| 1482 |
+
this._input.back();
|
| 1483 |
+
} else if (this._ch) {
|
| 1484 |
+
this.print_string(this._ch + this.eatString(')'));
|
| 1485 |
+
if (parenLevel) {
|
| 1486 |
+
parenLevel--;
|
| 1487 |
+
this.outdent();
|
| 1488 |
+
}
|
| 1489 |
+
}
|
| 1490 |
+
} else {
|
| 1491 |
+
var space_needed = false;
|
| 1492 |
+
if (this._input.lookBack("with")) {
|
| 1493 |
+
// look back is not an accurate solution, we need tokens to confirm without whitespaces
|
| 1494 |
+
space_needed = true;
|
| 1495 |
+
}
|
| 1496 |
+
this.preserveSingleSpace(isAfterSpace || space_needed);
|
| 1497 |
+
this.print_string(this._ch);
|
| 1498 |
+
|
| 1499 |
+
// handle scss/sass map
|
| 1500 |
+
if (insidePropertyValue && previous_ch === "$" && this._options.selector_separator_newline) {
|
| 1501 |
+
this._output.add_new_line();
|
| 1502 |
+
insideScssMap = true;
|
| 1503 |
+
} else {
|
| 1504 |
+
this.eatWhitespace();
|
| 1505 |
+
parenLevel++;
|
| 1506 |
+
this.indent();
|
| 1507 |
+
}
|
| 1508 |
+
}
|
| 1509 |
+
} else if (this._ch === ')') {
|
| 1510 |
+
if (parenLevel) {
|
| 1511 |
+
parenLevel--;
|
| 1512 |
+
this.outdent();
|
| 1513 |
+
}
|
| 1514 |
+
if (insideScssMap && this._input.peek() === ";" && this._options.selector_separator_newline) {
|
| 1515 |
+
insideScssMap = false;
|
| 1516 |
+
this.outdent();
|
| 1517 |
+
this._output.add_new_line();
|
| 1518 |
+
}
|
| 1519 |
+
this.print_string(this._ch);
|
| 1520 |
+
} else if (this._ch === ',') {
|
| 1521 |
+
this.print_string(this._ch);
|
| 1522 |
+
this.eatWhitespace(true);
|
| 1523 |
+
if (this._options.selector_separator_newline && (!insidePropertyValue || insideScssMap) && parenLevel === 0 && !insideNonNestedAtRule) {
|
| 1524 |
+
this._output.add_new_line();
|
| 1525 |
+
} else {
|
| 1526 |
+
this._output.space_before_token = true;
|
| 1527 |
+
}
|
| 1528 |
+
} else if ((this._ch === '>' || this._ch === '+' || this._ch === '~') && !insidePropertyValue && parenLevel === 0) {
|
| 1529 |
+
//handle combinator spacing
|
| 1530 |
+
if (this._options.space_around_combinator) {
|
| 1531 |
+
this._output.space_before_token = true;
|
| 1532 |
+
this.print_string(this._ch);
|
| 1533 |
+
this._output.space_before_token = true;
|
| 1534 |
+
} else {
|
| 1535 |
+
this.print_string(this._ch);
|
| 1536 |
+
this.eatWhitespace();
|
| 1537 |
+
// squash extra whitespace
|
| 1538 |
+
if (this._ch && whitespaceChar.test(this._ch)) {
|
| 1539 |
+
this._ch = '';
|
| 1540 |
+
}
|
| 1541 |
+
}
|
| 1542 |
+
} else if (this._ch === ']') {
|
| 1543 |
+
this.print_string(this._ch);
|
| 1544 |
+
} else if (this._ch === '[') {
|
| 1545 |
+
this.preserveSingleSpace(isAfterSpace);
|
| 1546 |
+
this.print_string(this._ch);
|
| 1547 |
+
} else if (this._ch === '=') { // no whitespace before or after
|
| 1548 |
+
this.eatWhitespace();
|
| 1549 |
+
this.print_string('=');
|
| 1550 |
+
if (whitespaceChar.test(this._ch)) {
|
| 1551 |
+
this._ch = '';
|
| 1552 |
+
}
|
| 1553 |
+
} else if (this._ch === '!' && !this._input.lookBack("\\")) { // !important
|
| 1554 |
+
this._output.space_before_token = true;
|
| 1555 |
+
this.print_string(this._ch);
|
| 1556 |
+
} else {
|
| 1557 |
+
var preserveAfterSpace = previous_ch === '"' || previous_ch === '\'';
|
| 1558 |
+
this.preserveSingleSpace(preserveAfterSpace || isAfterSpace);
|
| 1559 |
+
this.print_string(this._ch);
|
| 1560 |
+
|
| 1561 |
+
if (!this._output.just_added_newline() && this._input.peek() === '\n' && insideNonSemiColonValues) {
|
| 1562 |
+
this._output.add_new_line();
|
| 1563 |
+
}
|
| 1564 |
+
}
|
| 1565 |
+
}
|
| 1566 |
+
|
| 1567 |
+
var sweetCode = this._output.get_code(eol);
|
| 1568 |
+
|
| 1569 |
+
return sweetCode;
|
| 1570 |
+
};
|
| 1571 |
+
|
| 1572 |
+
module.exports.Beautifier = Beautifier;
|
| 1573 |
+
|
| 1574 |
+
|
| 1575 |
+
/***/ }),
|
| 1576 |
+
/* 17 */
|
| 1577 |
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
| 1578 |
+
|
| 1579 |
+
/*jshint node:true */
|
| 1580 |
+
/*
|
| 1581 |
+
|
| 1582 |
+
The MIT License (MIT)
|
| 1583 |
+
|
| 1584 |
+
Copyright (c) 2007-2018 Einar Lielmanis, Liam Newman, and contributors.
|
| 1585 |
+
|
| 1586 |
+
Permission is hereby granted, free of charge, to any person
|
| 1587 |
+
obtaining a copy of this software and associated documentation files
|
| 1588 |
+
(the "Software"), to deal in the Software without restriction,
|
| 1589 |
+
including without limitation the rights to use, copy, modify, merge,
|
| 1590 |
+
publish, distribute, sublicense, and/or sell copies of the Software,
|
| 1591 |
+
and to permit persons to whom the Software is furnished to do so,
|
| 1592 |
+
subject to the following conditions:
|
| 1593 |
+
|
| 1594 |
+
The above copyright notice and this permission notice shall be
|
| 1595 |
+
included in all copies or substantial portions of the Software.
|
| 1596 |
+
|
| 1597 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 1598 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
| 1599 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
| 1600 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
| 1601 |
+
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
| 1602 |
+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
| 1603 |
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 1604 |
+
SOFTWARE.
|
| 1605 |
+
*/
|
| 1606 |
+
|
| 1607 |
+
|
| 1608 |
+
|
| 1609 |
+
var BaseOptions = (__webpack_require__(6).Options);
|
| 1610 |
+
|
| 1611 |
+
function Options(options) {
|
| 1612 |
+
BaseOptions.call(this, options, 'css');
|
| 1613 |
+
|
| 1614 |
+
this.selector_separator_newline = this._get_boolean('selector_separator_newline', true);
|
| 1615 |
+
this.newline_between_rules = this._get_boolean('newline_between_rules', true);
|
| 1616 |
+
var space_around_selector_separator = this._get_boolean('space_around_selector_separator');
|
| 1617 |
+
this.space_around_combinator = this._get_boolean('space_around_combinator') || space_around_selector_separator;
|
| 1618 |
+
|
| 1619 |
+
var brace_style_split = this._get_selection_list('brace_style', ['collapse', 'expand', 'end-expand', 'none', 'preserve-inline']);
|
| 1620 |
+
this.brace_style = 'collapse';
|
| 1621 |
+
for (var bs = 0; bs < brace_style_split.length; bs++) {
|
| 1622 |
+
if (brace_style_split[bs] !== 'expand') {
|
| 1623 |
+
// default to collapse, as only collapse|expand is implemented for now
|
| 1624 |
+
this.brace_style = 'collapse';
|
| 1625 |
+
} else {
|
| 1626 |
+
this.brace_style = brace_style_split[bs];
|
| 1627 |
+
}
|
| 1628 |
+
}
|
| 1629 |
+
}
|
| 1630 |
+
Options.prototype = new BaseOptions();
|
| 1631 |
+
|
| 1632 |
+
|
| 1633 |
+
|
| 1634 |
+
module.exports.Options = Options;
|
| 1635 |
+
|
| 1636 |
+
|
| 1637 |
+
/***/ })
|
| 1638 |
+
/******/ ]);
|
| 1639 |
+
/************************************************************************/
|
| 1640 |
+
/******/ // The module cache
|
| 1641 |
+
/******/ var __webpack_module_cache__ = {};
|
| 1642 |
+
/******/
|
| 1643 |
+
/******/ // The require function
|
| 1644 |
+
/******/ function __webpack_require__(moduleId) {
|
| 1645 |
+
/******/ // Check if module is in cache
|
| 1646 |
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
| 1647 |
+
/******/ if (cachedModule !== undefined) {
|
| 1648 |
+
/******/ return cachedModule.exports;
|
| 1649 |
+
/******/ }
|
| 1650 |
+
/******/ // Create a new module (and put it into the cache)
|
| 1651 |
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
| 1652 |
+
/******/ // no module.id needed
|
| 1653 |
+
/******/ // no module.loaded needed
|
| 1654 |
+
/******/ exports: {}
|
| 1655 |
+
/******/ };
|
| 1656 |
+
/******/
|
| 1657 |
+
/******/ // Execute the module function
|
| 1658 |
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
| 1659 |
+
/******/
|
| 1660 |
+
/******/ // Return the exports of the module
|
| 1661 |
+
/******/ return module.exports;
|
| 1662 |
+
/******/ }
|
| 1663 |
+
/******/
|
| 1664 |
+
/************************************************************************/
|
| 1665 |
+
/******/
|
| 1666 |
+
/******/ // startup
|
| 1667 |
+
/******/ // Load entry module and return exports
|
| 1668 |
+
/******/ // This entry module is referenced by other modules so it can't be inlined
|
| 1669 |
+
/******/ var __webpack_exports__ = __webpack_require__(15);
|
| 1670 |
+
/******/ legacy_beautify_css = __webpack_exports__;
|
| 1671 |
+
/******/
|
| 1672 |
+
/******/ })()
|
| 1673 |
+
;
|
| 1674 |
+
var css_beautify = legacy_beautify_css;
|
| 1675 |
+
/* Footer */
|
| 1676 |
+
if (typeof define === "function" && define.amd) {
|
| 1677 |
+
// Add support for AMD ( https://github.com/amdjs/amdjs-api/wiki/AMD#defineamd-property- )
|
| 1678 |
+
define([], function() {
|
| 1679 |
+
return {
|
| 1680 |
+
css_beautify: css_beautify
|
| 1681 |
+
};
|
| 1682 |
+
});
|
| 1683 |
+
} else if (typeof exports !== "undefined") {
|
| 1684 |
+
// Add support for CommonJS. Just put this file somewhere on your require.paths
|
| 1685 |
+
// and you will be able to `var html_beautify = require("beautify").html_beautify`.
|
| 1686 |
+
exports.css_beautify = css_beautify;
|
| 1687 |
+
} else if (typeof window !== "undefined") {
|
| 1688 |
+
// If we're running a web page and don't have either of the above, add our one global
|
| 1689 |
+
window.css_beautify = css_beautify;
|
| 1690 |
+
} else if (typeof global !== "undefined") {
|
| 1691 |
+
// If we don't even have window, try global.
|
| 1692 |
+
global.css_beautify = css_beautify;
|
| 1693 |
+
}
|
| 1694 |
+
|
| 1695 |
+
}());
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/beautify/beautify-html.js
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/beautify/beautify.js
CHANGED
|
@@ -1,3 +1,25 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
(function (factory) {
|
| 2 |
+
if (typeof module === "object" && typeof module.exports === "object") {
|
| 3 |
+
var v = factory(require, exports);
|
| 4 |
+
if (v !== undefined) module.exports = v;
|
| 5 |
+
}
|
| 6 |
+
else if (typeof define === "function" && define.amd) {
|
| 7 |
+
define(["require", "exports"], factory);
|
| 8 |
+
}
|
| 9 |
+
})(function (require, exports) {
|
| 10 |
+
"use strict";
|
| 11 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 12 |
+
exports.js_beautify = void 0;
|
| 13 |
+
/*---------------------------------------------------------------------------------------------
|
| 14 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 15 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 16 |
+
*--------------------------------------------------------------------------------------------*/
|
| 17 |
+
/*
|
| 18 |
+
* Mock for the JS formatter. Ignore formatting of JS content in HTML.
|
| 19 |
+
*/
|
| 20 |
+
function js_beautify(js_source_text, options) {
|
| 21 |
+
// no formatting
|
| 22 |
+
return js_source_text;
|
| 23 |
+
}
|
| 24 |
+
exports.js_beautify = js_beautify;
|
| 25 |
+
});
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/htmlLanguageService.d.ts
CHANGED
|
@@ -1,3 +1,30 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Scanner, HTMLDocument, CompletionConfiguration, ICompletionParticipant, HTMLFormatConfiguration, DocumentContext, DocumentSymbol, IHTMLDataProvider, HTMLDataV1, LanguageServiceOptions, TextDocument, SelectionRange, WorkspaceEdit, Position, CompletionList, Hover, Range, SymbolInformation, TextEdit, DocumentHighlight, DocumentLink, FoldingRange, HoverSettings } from './htmlLanguageTypes';
|
| 2 |
+
export * from './htmlLanguageTypes';
|
| 3 |
+
export interface LanguageService {
|
| 4 |
+
setDataProviders(useDefaultDataProvider: boolean, customDataProviders: IHTMLDataProvider[]): void;
|
| 5 |
+
createScanner(input: string, initialOffset?: number): Scanner;
|
| 6 |
+
parseHTMLDocument(document: TextDocument): HTMLDocument;
|
| 7 |
+
findDocumentHighlights(document: TextDocument, position: Position, htmlDocument: HTMLDocument): DocumentHighlight[];
|
| 8 |
+
doComplete(document: TextDocument, position: Position, htmlDocument: HTMLDocument, options?: CompletionConfiguration): CompletionList;
|
| 9 |
+
doComplete2(document: TextDocument, position: Position, htmlDocument: HTMLDocument, documentContext: DocumentContext, options?: CompletionConfiguration): Promise<CompletionList>;
|
| 10 |
+
setCompletionParticipants(registeredCompletionParticipants: ICompletionParticipant[]): void;
|
| 11 |
+
doHover(document: TextDocument, position: Position, htmlDocument: HTMLDocument, options?: HoverSettings): Hover | null;
|
| 12 |
+
format(document: TextDocument, range: Range | undefined, options: HTMLFormatConfiguration): TextEdit[];
|
| 13 |
+
findDocumentLinks(document: TextDocument, documentContext: DocumentContext): DocumentLink[];
|
| 14 |
+
findDocumentSymbols(document: TextDocument, htmlDocument: HTMLDocument): SymbolInformation[];
|
| 15 |
+
findDocumentSymbols2(document: TextDocument, htmlDocument: HTMLDocument): DocumentSymbol[];
|
| 16 |
+
doQuoteComplete(document: TextDocument, position: Position, htmlDocument: HTMLDocument, options?: CompletionConfiguration): string | null;
|
| 17 |
+
doTagComplete(document: TextDocument, position: Position, htmlDocument: HTMLDocument): string | null;
|
| 18 |
+
getFoldingRanges(document: TextDocument, context?: {
|
| 19 |
+
rangeLimit?: number;
|
| 20 |
+
}): FoldingRange[];
|
| 21 |
+
getSelectionRanges(document: TextDocument, positions: Position[]): SelectionRange[];
|
| 22 |
+
doRename(document: TextDocument, position: Position, newName: string, htmlDocument: HTMLDocument): WorkspaceEdit | null;
|
| 23 |
+
findMatchingTagPosition(document: TextDocument, position: Position, htmlDocument: HTMLDocument): Position | null;
|
| 24 |
+
/** Deprecated, Use findLinkedEditingRanges instead */
|
| 25 |
+
findOnTypeRenameRanges(document: TextDocument, position: Position, htmlDocument: HTMLDocument): Range[] | null;
|
| 26 |
+
findLinkedEditingRanges(document: TextDocument, position: Position, htmlDocument: HTMLDocument): Range[] | null;
|
| 27 |
+
}
|
| 28 |
+
export declare function getLanguageService(options?: LanguageServiceOptions): LanguageService;
|
| 29 |
+
export declare function newHTMLDataProvider(id: string, customData: HTMLDataV1): IHTMLDataProvider;
|
| 30 |
+
export declare function getDefaultHTMLDataProvider(): IHTMLDataProvider;
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/htmlLanguageService.js
CHANGED
|
@@ -1,3 +1,89 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
| 6 |
+
if (k2 === undefined) k2 = k;
|
| 7 |
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
| 8 |
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
| 9 |
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
| 10 |
+
}
|
| 11 |
+
Object.defineProperty(o, k2, desc);
|
| 12 |
+
}) : (function(o, m, k, k2) {
|
| 13 |
+
if (k2 === undefined) k2 = k;
|
| 14 |
+
o[k2] = m[k];
|
| 15 |
+
}));
|
| 16 |
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
| 17 |
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
| 18 |
+
};
|
| 19 |
+
(function (factory) {
|
| 20 |
+
if (typeof module === "object" && typeof module.exports === "object") {
|
| 21 |
+
var v = factory(require, exports);
|
| 22 |
+
if (v !== undefined) module.exports = v;
|
| 23 |
+
}
|
| 24 |
+
else if (typeof define === "function" && define.amd) {
|
| 25 |
+
define(["require", "exports", "./parser/htmlScanner", "./parser/htmlParser", "./services/htmlCompletion", "./services/htmlHover", "./services/htmlFormatter", "./services/htmlLinks", "./services/htmlHighlighting", "./services/htmlSymbolsProvider", "./services/htmlRename", "./services/htmlMatchingTagPosition", "./services/htmlLinkedEditing", "./services/htmlFolding", "./services/htmlSelectionRange", "./languageFacts/dataProvider", "./languageFacts/dataManager", "./languageFacts/data/webCustomData", "./htmlLanguageTypes"], factory);
|
| 26 |
+
}
|
| 27 |
+
})(function (require, exports) {
|
| 28 |
+
"use strict";
|
| 29 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 30 |
+
exports.getDefaultHTMLDataProvider = exports.newHTMLDataProvider = exports.getLanguageService = void 0;
|
| 31 |
+
const htmlScanner_1 = require("./parser/htmlScanner");
|
| 32 |
+
const htmlParser_1 = require("./parser/htmlParser");
|
| 33 |
+
const htmlCompletion_1 = require("./services/htmlCompletion");
|
| 34 |
+
const htmlHover_1 = require("./services/htmlHover");
|
| 35 |
+
const htmlFormatter_1 = require("./services/htmlFormatter");
|
| 36 |
+
const htmlLinks_1 = require("./services/htmlLinks");
|
| 37 |
+
const htmlHighlighting_1 = require("./services/htmlHighlighting");
|
| 38 |
+
const htmlSymbolsProvider_1 = require("./services/htmlSymbolsProvider");
|
| 39 |
+
const htmlRename_1 = require("./services/htmlRename");
|
| 40 |
+
const htmlMatchingTagPosition_1 = require("./services/htmlMatchingTagPosition");
|
| 41 |
+
const htmlLinkedEditing_1 = require("./services/htmlLinkedEditing");
|
| 42 |
+
const htmlFolding_1 = require("./services/htmlFolding");
|
| 43 |
+
const htmlSelectionRange_1 = require("./services/htmlSelectionRange");
|
| 44 |
+
const dataProvider_1 = require("./languageFacts/dataProvider");
|
| 45 |
+
const dataManager_1 = require("./languageFacts/dataManager");
|
| 46 |
+
const webCustomData_1 = require("./languageFacts/data/webCustomData");
|
| 47 |
+
__exportStar(require("./htmlLanguageTypes"), exports);
|
| 48 |
+
const defaultLanguageServiceOptions = {};
|
| 49 |
+
function getLanguageService(options = defaultLanguageServiceOptions) {
|
| 50 |
+
const dataManager = new dataManager_1.HTMLDataManager(options);
|
| 51 |
+
const htmlHover = new htmlHover_1.HTMLHover(options, dataManager);
|
| 52 |
+
const htmlCompletion = new htmlCompletion_1.HTMLCompletion(options, dataManager);
|
| 53 |
+
const htmlParser = new htmlParser_1.HTMLParser(dataManager);
|
| 54 |
+
const htmlSelectionRange = new htmlSelectionRange_1.HTMLSelectionRange(htmlParser);
|
| 55 |
+
const htmlFolding = new htmlFolding_1.HTMLFolding(dataManager);
|
| 56 |
+
const htmlDocumentLinks = new htmlLinks_1.HTMLDocumentLinks(dataManager);
|
| 57 |
+
return {
|
| 58 |
+
setDataProviders: dataManager.setDataProviders.bind(dataManager),
|
| 59 |
+
createScanner: htmlScanner_1.createScanner,
|
| 60 |
+
parseHTMLDocument: htmlParser.parseDocument.bind(htmlParser),
|
| 61 |
+
doComplete: htmlCompletion.doComplete.bind(htmlCompletion),
|
| 62 |
+
doComplete2: htmlCompletion.doComplete2.bind(htmlCompletion),
|
| 63 |
+
setCompletionParticipants: htmlCompletion.setCompletionParticipants.bind(htmlCompletion),
|
| 64 |
+
doHover: htmlHover.doHover.bind(htmlHover),
|
| 65 |
+
format: htmlFormatter_1.format,
|
| 66 |
+
findDocumentHighlights: htmlHighlighting_1.findDocumentHighlights,
|
| 67 |
+
findDocumentLinks: htmlDocumentLinks.findDocumentLinks.bind(htmlDocumentLinks),
|
| 68 |
+
findDocumentSymbols: htmlSymbolsProvider_1.findDocumentSymbols,
|
| 69 |
+
findDocumentSymbols2: htmlSymbolsProvider_1.findDocumentSymbols2,
|
| 70 |
+
getFoldingRanges: htmlFolding.getFoldingRanges.bind(htmlFolding),
|
| 71 |
+
getSelectionRanges: htmlSelectionRange.getSelectionRanges.bind(htmlSelectionRange),
|
| 72 |
+
doQuoteComplete: htmlCompletion.doQuoteComplete.bind(htmlCompletion),
|
| 73 |
+
doTagComplete: htmlCompletion.doTagComplete.bind(htmlCompletion),
|
| 74 |
+
doRename: htmlRename_1.doRename,
|
| 75 |
+
findMatchingTagPosition: htmlMatchingTagPosition_1.findMatchingTagPosition,
|
| 76 |
+
findOnTypeRenameRanges: htmlLinkedEditing_1.findLinkedEditingRanges,
|
| 77 |
+
findLinkedEditingRanges: htmlLinkedEditing_1.findLinkedEditingRanges
|
| 78 |
+
};
|
| 79 |
+
}
|
| 80 |
+
exports.getLanguageService = getLanguageService;
|
| 81 |
+
function newHTMLDataProvider(id, customData) {
|
| 82 |
+
return new dataProvider_1.HTMLDataProvider(id, customData);
|
| 83 |
+
}
|
| 84 |
+
exports.newHTMLDataProvider = newHTMLDataProvider;
|
| 85 |
+
function getDefaultHTMLDataProvider() {
|
| 86 |
+
return newHTMLDataProvider('default', webCustomData_1.htmlData);
|
| 87 |
+
}
|
| 88 |
+
exports.getDefaultHTMLDataProvider = getDefaultHTMLDataProvider;
|
| 89 |
+
});
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/htmlLanguageTypes.d.ts
CHANGED
|
@@ -1,3 +1,256 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { Position, Range, Location, MarkupContent, MarkupKind, MarkedString, DocumentUri, SelectionRange, WorkspaceEdit, CompletionList, CompletionItemKind, CompletionItem, CompletionItemTag, InsertTextMode, Command, SymbolInformation, DocumentSymbol, SymbolKind, Hover, TextEdit, InsertReplaceEdit, InsertTextFormat, DocumentHighlight, DocumentHighlightKind, DocumentLink, FoldingRange, FoldingRangeKind, SignatureHelp, Definition, Diagnostic, FormattingOptions, Color, ColorInformation, ColorPresentation } from 'vscode-languageserver-types';
|
| 2 |
+
import { TextDocument } from 'vscode-languageserver-textdocument';
|
| 3 |
+
export { TextDocument, Position, Range, Location, MarkupContent, MarkupKind, MarkedString, DocumentUri, SelectionRange, WorkspaceEdit, CompletionList, CompletionItemKind, CompletionItem, CompletionItemTag, InsertTextMode, Command, SymbolInformation, DocumentSymbol, SymbolKind, Hover, TextEdit, InsertReplaceEdit, InsertTextFormat, DocumentHighlight, DocumentHighlightKind, DocumentLink, FoldingRange, FoldingRangeKind, SignatureHelp, Definition, Diagnostic, FormattingOptions, Color, ColorInformation, ColorPresentation };
|
| 4 |
+
export interface HTMLFormatConfiguration {
|
| 5 |
+
tabSize?: number;
|
| 6 |
+
insertSpaces?: boolean;
|
| 7 |
+
indentEmptyLines?: boolean;
|
| 8 |
+
wrapLineLength?: number;
|
| 9 |
+
unformatted?: string;
|
| 10 |
+
contentUnformatted?: string;
|
| 11 |
+
indentInnerHtml?: boolean;
|
| 12 |
+
wrapAttributes?: 'auto' | 'force' | 'force-aligned' | 'force-expand-multiline' | 'aligned-multiple' | 'preserve' | 'preserve-aligned';
|
| 13 |
+
wrapAttributesIndentSize?: number;
|
| 14 |
+
preserveNewLines?: boolean;
|
| 15 |
+
maxPreserveNewLines?: number;
|
| 16 |
+
indentHandlebars?: boolean;
|
| 17 |
+
endWithNewline?: boolean;
|
| 18 |
+
extraLiners?: string;
|
| 19 |
+
indentScripts?: 'keep' | 'separate' | 'normal';
|
| 20 |
+
templating?: ('auto' | 'none' | 'angular' | 'django' | 'erb' | 'handlebars' | 'php' | 'smarty')[] | boolean;
|
| 21 |
+
unformattedContentDelimiter?: string;
|
| 22 |
+
}
|
| 23 |
+
export interface HoverSettings {
|
| 24 |
+
documentation?: boolean;
|
| 25 |
+
references?: boolean;
|
| 26 |
+
}
|
| 27 |
+
export interface CompletionConfiguration {
|
| 28 |
+
[provider: string]: boolean | undefined | string;
|
| 29 |
+
hideAutoCompleteProposals?: boolean;
|
| 30 |
+
attributeDefaultValue?: 'empty' | 'singlequotes' | 'doublequotes';
|
| 31 |
+
}
|
| 32 |
+
export interface Node {
|
| 33 |
+
tag: string | undefined;
|
| 34 |
+
start: number;
|
| 35 |
+
startTagEnd: number | undefined;
|
| 36 |
+
end: number;
|
| 37 |
+
endTagStart: number | undefined;
|
| 38 |
+
children: Node[];
|
| 39 |
+
parent?: Node;
|
| 40 |
+
attributes?: {
|
| 41 |
+
[name: string]: string | null;
|
| 42 |
+
} | undefined;
|
| 43 |
+
}
|
| 44 |
+
export declare enum TokenType {
|
| 45 |
+
StartCommentTag = 0,
|
| 46 |
+
Comment = 1,
|
| 47 |
+
EndCommentTag = 2,
|
| 48 |
+
StartTagOpen = 3,
|
| 49 |
+
StartTagClose = 4,
|
| 50 |
+
StartTagSelfClose = 5,
|
| 51 |
+
StartTag = 6,
|
| 52 |
+
EndTagOpen = 7,
|
| 53 |
+
EndTagClose = 8,
|
| 54 |
+
EndTag = 9,
|
| 55 |
+
DelimiterAssign = 10,
|
| 56 |
+
AttributeName = 11,
|
| 57 |
+
AttributeValue = 12,
|
| 58 |
+
StartDoctypeTag = 13,
|
| 59 |
+
Doctype = 14,
|
| 60 |
+
EndDoctypeTag = 15,
|
| 61 |
+
Content = 16,
|
| 62 |
+
Whitespace = 17,
|
| 63 |
+
Unknown = 18,
|
| 64 |
+
Script = 19,
|
| 65 |
+
Styles = 20,
|
| 66 |
+
EOS = 21
|
| 67 |
+
}
|
| 68 |
+
export declare enum ScannerState {
|
| 69 |
+
WithinContent = 0,
|
| 70 |
+
AfterOpeningStartTag = 1,
|
| 71 |
+
AfterOpeningEndTag = 2,
|
| 72 |
+
WithinDoctype = 3,
|
| 73 |
+
WithinTag = 4,
|
| 74 |
+
WithinEndTag = 5,
|
| 75 |
+
WithinComment = 6,
|
| 76 |
+
WithinScriptContent = 7,
|
| 77 |
+
WithinStyleContent = 8,
|
| 78 |
+
AfterAttributeName = 9,
|
| 79 |
+
BeforeAttributeValue = 10
|
| 80 |
+
}
|
| 81 |
+
export interface Scanner {
|
| 82 |
+
scan(): TokenType;
|
| 83 |
+
getTokenType(): TokenType;
|
| 84 |
+
getTokenOffset(): number;
|
| 85 |
+
getTokenLength(): number;
|
| 86 |
+
getTokenEnd(): number;
|
| 87 |
+
getTokenText(): string;
|
| 88 |
+
getTokenError(): string | undefined;
|
| 89 |
+
getScannerState(): ScannerState;
|
| 90 |
+
}
|
| 91 |
+
export declare type HTMLDocument = {
|
| 92 |
+
roots: Node[];
|
| 93 |
+
findNodeBefore(offset: number): Node;
|
| 94 |
+
findNodeAt(offset: number): Node;
|
| 95 |
+
};
|
| 96 |
+
export interface DocumentContext {
|
| 97 |
+
resolveReference(ref: string, base: string): string | undefined;
|
| 98 |
+
}
|
| 99 |
+
export interface HtmlAttributeValueContext {
|
| 100 |
+
document: TextDocument;
|
| 101 |
+
position: Position;
|
| 102 |
+
tag: string;
|
| 103 |
+
attribute: string;
|
| 104 |
+
value: string;
|
| 105 |
+
range: Range;
|
| 106 |
+
}
|
| 107 |
+
export interface HtmlContentContext {
|
| 108 |
+
document: TextDocument;
|
| 109 |
+
position: Position;
|
| 110 |
+
}
|
| 111 |
+
export interface ICompletionParticipant {
|
| 112 |
+
onHtmlAttributeValue?: (context: HtmlAttributeValueContext) => void;
|
| 113 |
+
onHtmlContent?: (context: HtmlContentContext) => void;
|
| 114 |
+
}
|
| 115 |
+
export interface IReference {
|
| 116 |
+
name: string;
|
| 117 |
+
url: string;
|
| 118 |
+
}
|
| 119 |
+
export interface ITagData {
|
| 120 |
+
name: string;
|
| 121 |
+
description?: string | MarkupContent;
|
| 122 |
+
attributes: IAttributeData[];
|
| 123 |
+
references?: IReference[];
|
| 124 |
+
void?: boolean;
|
| 125 |
+
}
|
| 126 |
+
export interface IAttributeData {
|
| 127 |
+
name: string;
|
| 128 |
+
description?: string | MarkupContent;
|
| 129 |
+
valueSet?: string;
|
| 130 |
+
values?: IValueData[];
|
| 131 |
+
references?: IReference[];
|
| 132 |
+
}
|
| 133 |
+
export interface IValueData {
|
| 134 |
+
name: string;
|
| 135 |
+
description?: string | MarkupContent;
|
| 136 |
+
references?: IReference[];
|
| 137 |
+
}
|
| 138 |
+
export interface IValueSet {
|
| 139 |
+
name: string;
|
| 140 |
+
values: IValueData[];
|
| 141 |
+
}
|
| 142 |
+
export interface HTMLDataV1 {
|
| 143 |
+
version: 1 | 1.1;
|
| 144 |
+
tags?: ITagData[];
|
| 145 |
+
globalAttributes?: IAttributeData[];
|
| 146 |
+
valueSets?: IValueSet[];
|
| 147 |
+
}
|
| 148 |
+
export interface IHTMLDataProvider {
|
| 149 |
+
getId(): string;
|
| 150 |
+
isApplicable(languageId: string): boolean;
|
| 151 |
+
provideTags(): ITagData[];
|
| 152 |
+
provideAttributes(tag: string): IAttributeData[];
|
| 153 |
+
provideValues(tag: string, attribute: string): IValueData[];
|
| 154 |
+
}
|
| 155 |
+
/**
|
| 156 |
+
* Describes what LSP capabilities the client supports
|
| 157 |
+
*/
|
| 158 |
+
export interface ClientCapabilities {
|
| 159 |
+
/**
|
| 160 |
+
* The text document client capabilities
|
| 161 |
+
*/
|
| 162 |
+
textDocument?: {
|
| 163 |
+
/**
|
| 164 |
+
* Capabilities specific to completions.
|
| 165 |
+
*/
|
| 166 |
+
completion?: {
|
| 167 |
+
/**
|
| 168 |
+
* The client supports the following `CompletionItem` specific
|
| 169 |
+
* capabilities.
|
| 170 |
+
*/
|
| 171 |
+
completionItem?: {
|
| 172 |
+
/**
|
| 173 |
+
* Client supports the follow content formats for the documentation
|
| 174 |
+
* property. The order describes the preferred format of the client.
|
| 175 |
+
*/
|
| 176 |
+
documentationFormat?: MarkupKind[];
|
| 177 |
+
};
|
| 178 |
+
};
|
| 179 |
+
/**
|
| 180 |
+
* Capabilities specific to hovers.
|
| 181 |
+
*/
|
| 182 |
+
hover?: {
|
| 183 |
+
/**
|
| 184 |
+
* Client supports the follow content formats for the content
|
| 185 |
+
* property. The order describes the preferred format of the client.
|
| 186 |
+
*/
|
| 187 |
+
contentFormat?: MarkupKind[];
|
| 188 |
+
};
|
| 189 |
+
};
|
| 190 |
+
}
|
| 191 |
+
export declare namespace ClientCapabilities {
|
| 192 |
+
const LATEST: ClientCapabilities;
|
| 193 |
+
}
|
| 194 |
+
export interface LanguageServiceOptions {
|
| 195 |
+
/**
|
| 196 |
+
* Unless set to false, the default HTML data provider will be used
|
| 197 |
+
* along with the providers from customDataProviders.
|
| 198 |
+
* Defaults to true.
|
| 199 |
+
*/
|
| 200 |
+
useDefaultDataProvider?: boolean;
|
| 201 |
+
/**
|
| 202 |
+
* Provide data that could enhance the service's understanding of
|
| 203 |
+
* HTML tag / attribute / attribute-value
|
| 204 |
+
*/
|
| 205 |
+
customDataProviders?: IHTMLDataProvider[];
|
| 206 |
+
/**
|
| 207 |
+
* Abstract file system access away from the service.
|
| 208 |
+
* Used for path completion, etc.
|
| 209 |
+
*/
|
| 210 |
+
fileSystemProvider?: FileSystemProvider;
|
| 211 |
+
/**
|
| 212 |
+
* Describes the LSP capabilities the client supports.
|
| 213 |
+
*/
|
| 214 |
+
clientCapabilities?: ClientCapabilities;
|
| 215 |
+
}
|
| 216 |
+
export declare enum FileType {
|
| 217 |
+
/**
|
| 218 |
+
* The file type is unknown.
|
| 219 |
+
*/
|
| 220 |
+
Unknown = 0,
|
| 221 |
+
/**
|
| 222 |
+
* A regular file.
|
| 223 |
+
*/
|
| 224 |
+
File = 1,
|
| 225 |
+
/**
|
| 226 |
+
* A directory.
|
| 227 |
+
*/
|
| 228 |
+
Directory = 2,
|
| 229 |
+
/**
|
| 230 |
+
* A symbolic link to a file.
|
| 231 |
+
*/
|
| 232 |
+
SymbolicLink = 64
|
| 233 |
+
}
|
| 234 |
+
export interface FileStat {
|
| 235 |
+
/**
|
| 236 |
+
* The type of the file, e.g. is a regular file, a directory, or symbolic link
|
| 237 |
+
* to a file.
|
| 238 |
+
*/
|
| 239 |
+
type: FileType;
|
| 240 |
+
/**
|
| 241 |
+
* The creation timestamp in milliseconds elapsed since January 1, 1970 00:00:00 UTC.
|
| 242 |
+
*/
|
| 243 |
+
ctime: number;
|
| 244 |
+
/**
|
| 245 |
+
* The modification timestamp in milliseconds elapsed since January 1, 1970 00:00:00 UTC.
|
| 246 |
+
*/
|
| 247 |
+
mtime: number;
|
| 248 |
+
/**
|
| 249 |
+
* The size in bytes.
|
| 250 |
+
*/
|
| 251 |
+
size: number;
|
| 252 |
+
}
|
| 253 |
+
export interface FileSystemProvider {
|
| 254 |
+
stat(uri: DocumentUri): Promise<FileStat>;
|
| 255 |
+
readDirectory?(uri: DocumentUri): Promise<[string, FileType][]>;
|
| 256 |
+
}
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/htmlLanguageTypes.js
CHANGED
|
@@ -1,3 +1,125 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
(function (factory) {
|
| 6 |
+
if (typeof module === "object" && typeof module.exports === "object") {
|
| 7 |
+
var v = factory(require, exports);
|
| 8 |
+
if (v !== undefined) module.exports = v;
|
| 9 |
+
}
|
| 10 |
+
else if (typeof define === "function" && define.amd) {
|
| 11 |
+
define(["require", "exports", "vscode-languageserver-types", "vscode-languageserver-textdocument"], factory);
|
| 12 |
+
}
|
| 13 |
+
})(function (require, exports) {
|
| 14 |
+
"use strict";
|
| 15 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 16 |
+
exports.FileType = exports.ClientCapabilities = exports.ScannerState = exports.TokenType = exports.ColorPresentation = exports.ColorInformation = exports.Color = exports.FormattingOptions = exports.Diagnostic = exports.FoldingRangeKind = exports.FoldingRange = exports.DocumentLink = exports.DocumentHighlightKind = exports.DocumentHighlight = exports.InsertTextFormat = exports.InsertReplaceEdit = exports.TextEdit = exports.Hover = exports.SymbolKind = exports.DocumentSymbol = exports.SymbolInformation = exports.Command = exports.InsertTextMode = exports.CompletionItemTag = exports.CompletionItem = exports.CompletionItemKind = exports.CompletionList = exports.WorkspaceEdit = exports.SelectionRange = exports.DocumentUri = exports.MarkedString = exports.MarkupKind = exports.MarkupContent = exports.Location = exports.Range = exports.Position = exports.TextDocument = void 0;
|
| 17 |
+
const vscode_languageserver_types_1 = require("vscode-languageserver-types");
|
| 18 |
+
Object.defineProperty(exports, "Position", { enumerable: true, get: function () { return vscode_languageserver_types_1.Position; } });
|
| 19 |
+
Object.defineProperty(exports, "Range", { enumerable: true, get: function () { return vscode_languageserver_types_1.Range; } });
|
| 20 |
+
Object.defineProperty(exports, "Location", { enumerable: true, get: function () { return vscode_languageserver_types_1.Location; } });
|
| 21 |
+
Object.defineProperty(exports, "MarkupContent", { enumerable: true, get: function () { return vscode_languageserver_types_1.MarkupContent; } });
|
| 22 |
+
Object.defineProperty(exports, "MarkupKind", { enumerable: true, get: function () { return vscode_languageserver_types_1.MarkupKind; } });
|
| 23 |
+
Object.defineProperty(exports, "MarkedString", { enumerable: true, get: function () { return vscode_languageserver_types_1.MarkedString; } });
|
| 24 |
+
Object.defineProperty(exports, "DocumentUri", { enumerable: true, get: function () { return vscode_languageserver_types_1.DocumentUri; } });
|
| 25 |
+
Object.defineProperty(exports, "SelectionRange", { enumerable: true, get: function () { return vscode_languageserver_types_1.SelectionRange; } });
|
| 26 |
+
Object.defineProperty(exports, "WorkspaceEdit", { enumerable: true, get: function () { return vscode_languageserver_types_1.WorkspaceEdit; } });
|
| 27 |
+
Object.defineProperty(exports, "CompletionList", { enumerable: true, get: function () { return vscode_languageserver_types_1.CompletionList; } });
|
| 28 |
+
Object.defineProperty(exports, "CompletionItemKind", { enumerable: true, get: function () { return vscode_languageserver_types_1.CompletionItemKind; } });
|
| 29 |
+
Object.defineProperty(exports, "CompletionItem", { enumerable: true, get: function () { return vscode_languageserver_types_1.CompletionItem; } });
|
| 30 |
+
Object.defineProperty(exports, "CompletionItemTag", { enumerable: true, get: function () { return vscode_languageserver_types_1.CompletionItemTag; } });
|
| 31 |
+
Object.defineProperty(exports, "InsertTextMode", { enumerable: true, get: function () { return vscode_languageserver_types_1.InsertTextMode; } });
|
| 32 |
+
Object.defineProperty(exports, "Command", { enumerable: true, get: function () { return vscode_languageserver_types_1.Command; } });
|
| 33 |
+
Object.defineProperty(exports, "SymbolInformation", { enumerable: true, get: function () { return vscode_languageserver_types_1.SymbolInformation; } });
|
| 34 |
+
Object.defineProperty(exports, "DocumentSymbol", { enumerable: true, get: function () { return vscode_languageserver_types_1.DocumentSymbol; } });
|
| 35 |
+
Object.defineProperty(exports, "SymbolKind", { enumerable: true, get: function () { return vscode_languageserver_types_1.SymbolKind; } });
|
| 36 |
+
Object.defineProperty(exports, "Hover", { enumerable: true, get: function () { return vscode_languageserver_types_1.Hover; } });
|
| 37 |
+
Object.defineProperty(exports, "TextEdit", { enumerable: true, get: function () { return vscode_languageserver_types_1.TextEdit; } });
|
| 38 |
+
Object.defineProperty(exports, "InsertReplaceEdit", { enumerable: true, get: function () { return vscode_languageserver_types_1.InsertReplaceEdit; } });
|
| 39 |
+
Object.defineProperty(exports, "InsertTextFormat", { enumerable: true, get: function () { return vscode_languageserver_types_1.InsertTextFormat; } });
|
| 40 |
+
Object.defineProperty(exports, "DocumentHighlight", { enumerable: true, get: function () { return vscode_languageserver_types_1.DocumentHighlight; } });
|
| 41 |
+
Object.defineProperty(exports, "DocumentHighlightKind", { enumerable: true, get: function () { return vscode_languageserver_types_1.DocumentHighlightKind; } });
|
| 42 |
+
Object.defineProperty(exports, "DocumentLink", { enumerable: true, get: function () { return vscode_languageserver_types_1.DocumentLink; } });
|
| 43 |
+
Object.defineProperty(exports, "FoldingRange", { enumerable: true, get: function () { return vscode_languageserver_types_1.FoldingRange; } });
|
| 44 |
+
Object.defineProperty(exports, "FoldingRangeKind", { enumerable: true, get: function () { return vscode_languageserver_types_1.FoldingRangeKind; } });
|
| 45 |
+
Object.defineProperty(exports, "Diagnostic", { enumerable: true, get: function () { return vscode_languageserver_types_1.Diagnostic; } });
|
| 46 |
+
Object.defineProperty(exports, "FormattingOptions", { enumerable: true, get: function () { return vscode_languageserver_types_1.FormattingOptions; } });
|
| 47 |
+
Object.defineProperty(exports, "Color", { enumerable: true, get: function () { return vscode_languageserver_types_1.Color; } });
|
| 48 |
+
Object.defineProperty(exports, "ColorInformation", { enumerable: true, get: function () { return vscode_languageserver_types_1.ColorInformation; } });
|
| 49 |
+
Object.defineProperty(exports, "ColorPresentation", { enumerable: true, get: function () { return vscode_languageserver_types_1.ColorPresentation; } });
|
| 50 |
+
const vscode_languageserver_textdocument_1 = require("vscode-languageserver-textdocument");
|
| 51 |
+
Object.defineProperty(exports, "TextDocument", { enumerable: true, get: function () { return vscode_languageserver_textdocument_1.TextDocument; } });
|
| 52 |
+
var TokenType;
|
| 53 |
+
(function (TokenType) {
|
| 54 |
+
TokenType[TokenType["StartCommentTag"] = 0] = "StartCommentTag";
|
| 55 |
+
TokenType[TokenType["Comment"] = 1] = "Comment";
|
| 56 |
+
TokenType[TokenType["EndCommentTag"] = 2] = "EndCommentTag";
|
| 57 |
+
TokenType[TokenType["StartTagOpen"] = 3] = "StartTagOpen";
|
| 58 |
+
TokenType[TokenType["StartTagClose"] = 4] = "StartTagClose";
|
| 59 |
+
TokenType[TokenType["StartTagSelfClose"] = 5] = "StartTagSelfClose";
|
| 60 |
+
TokenType[TokenType["StartTag"] = 6] = "StartTag";
|
| 61 |
+
TokenType[TokenType["EndTagOpen"] = 7] = "EndTagOpen";
|
| 62 |
+
TokenType[TokenType["EndTagClose"] = 8] = "EndTagClose";
|
| 63 |
+
TokenType[TokenType["EndTag"] = 9] = "EndTag";
|
| 64 |
+
TokenType[TokenType["DelimiterAssign"] = 10] = "DelimiterAssign";
|
| 65 |
+
TokenType[TokenType["AttributeName"] = 11] = "AttributeName";
|
| 66 |
+
TokenType[TokenType["AttributeValue"] = 12] = "AttributeValue";
|
| 67 |
+
TokenType[TokenType["StartDoctypeTag"] = 13] = "StartDoctypeTag";
|
| 68 |
+
TokenType[TokenType["Doctype"] = 14] = "Doctype";
|
| 69 |
+
TokenType[TokenType["EndDoctypeTag"] = 15] = "EndDoctypeTag";
|
| 70 |
+
TokenType[TokenType["Content"] = 16] = "Content";
|
| 71 |
+
TokenType[TokenType["Whitespace"] = 17] = "Whitespace";
|
| 72 |
+
TokenType[TokenType["Unknown"] = 18] = "Unknown";
|
| 73 |
+
TokenType[TokenType["Script"] = 19] = "Script";
|
| 74 |
+
TokenType[TokenType["Styles"] = 20] = "Styles";
|
| 75 |
+
TokenType[TokenType["EOS"] = 21] = "EOS";
|
| 76 |
+
})(TokenType || (exports.TokenType = TokenType = {}));
|
| 77 |
+
var ScannerState;
|
| 78 |
+
(function (ScannerState) {
|
| 79 |
+
ScannerState[ScannerState["WithinContent"] = 0] = "WithinContent";
|
| 80 |
+
ScannerState[ScannerState["AfterOpeningStartTag"] = 1] = "AfterOpeningStartTag";
|
| 81 |
+
ScannerState[ScannerState["AfterOpeningEndTag"] = 2] = "AfterOpeningEndTag";
|
| 82 |
+
ScannerState[ScannerState["WithinDoctype"] = 3] = "WithinDoctype";
|
| 83 |
+
ScannerState[ScannerState["WithinTag"] = 4] = "WithinTag";
|
| 84 |
+
ScannerState[ScannerState["WithinEndTag"] = 5] = "WithinEndTag";
|
| 85 |
+
ScannerState[ScannerState["WithinComment"] = 6] = "WithinComment";
|
| 86 |
+
ScannerState[ScannerState["WithinScriptContent"] = 7] = "WithinScriptContent";
|
| 87 |
+
ScannerState[ScannerState["WithinStyleContent"] = 8] = "WithinStyleContent";
|
| 88 |
+
ScannerState[ScannerState["AfterAttributeName"] = 9] = "AfterAttributeName";
|
| 89 |
+
ScannerState[ScannerState["BeforeAttributeValue"] = 10] = "BeforeAttributeValue";
|
| 90 |
+
})(ScannerState || (exports.ScannerState = ScannerState = {}));
|
| 91 |
+
var ClientCapabilities;
|
| 92 |
+
(function (ClientCapabilities) {
|
| 93 |
+
ClientCapabilities.LATEST = {
|
| 94 |
+
textDocument: {
|
| 95 |
+
completion: {
|
| 96 |
+
completionItem: {
|
| 97 |
+
documentationFormat: [vscode_languageserver_types_1.MarkupKind.Markdown, vscode_languageserver_types_1.MarkupKind.PlainText]
|
| 98 |
+
}
|
| 99 |
+
},
|
| 100 |
+
hover: {
|
| 101 |
+
contentFormat: [vscode_languageserver_types_1.MarkupKind.Markdown, vscode_languageserver_types_1.MarkupKind.PlainText]
|
| 102 |
+
}
|
| 103 |
+
}
|
| 104 |
+
};
|
| 105 |
+
})(ClientCapabilities || (exports.ClientCapabilities = ClientCapabilities = {}));
|
| 106 |
+
var FileType;
|
| 107 |
+
(function (FileType) {
|
| 108 |
+
/**
|
| 109 |
+
* The file type is unknown.
|
| 110 |
+
*/
|
| 111 |
+
FileType[FileType["Unknown"] = 0] = "Unknown";
|
| 112 |
+
/**
|
| 113 |
+
* A regular file.
|
| 114 |
+
*/
|
| 115 |
+
FileType[FileType["File"] = 1] = "File";
|
| 116 |
+
/**
|
| 117 |
+
* A directory.
|
| 118 |
+
*/
|
| 119 |
+
FileType[FileType["Directory"] = 2] = "Directory";
|
| 120 |
+
/**
|
| 121 |
+
* A symbolic link to a file.
|
| 122 |
+
*/
|
| 123 |
+
FileType[FileType["SymbolicLink"] = 64] = "SymbolicLink";
|
| 124 |
+
})(FileType || (exports.FileType = FileType = {}));
|
| 125 |
+
});
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/languageFacts/data/webCustomData.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
size 97
|
|
|
|
| 1 |
+
import { HTMLDataV1 } from '../../htmlLanguageTypes';
|
| 2 |
+
export declare const htmlData: HTMLDataV1;
|
|
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/languageFacts/data/webCustomData.js
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/languageFacts/dataManager.js
CHANGED
|
@@ -1,3 +1,91 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
(function (factory) {
|
| 6 |
+
if (typeof module === "object" && typeof module.exports === "object") {
|
| 7 |
+
var v = factory(require, exports);
|
| 8 |
+
if (v !== undefined) module.exports = v;
|
| 9 |
+
}
|
| 10 |
+
else if (typeof define === "function" && define.amd) {
|
| 11 |
+
define(["require", "exports", "./dataProvider", "./data/webCustomData", "../utils/arrays"], factory);
|
| 12 |
+
}
|
| 13 |
+
})(function (require, exports) {
|
| 14 |
+
"use strict";
|
| 15 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 16 |
+
exports.HTMLDataManager = void 0;
|
| 17 |
+
const dataProvider_1 = require("./dataProvider");
|
| 18 |
+
const webCustomData_1 = require("./data/webCustomData");
|
| 19 |
+
const arrays = require("../utils/arrays");
|
| 20 |
+
class HTMLDataManager {
|
| 21 |
+
constructor(options) {
|
| 22 |
+
this.dataProviders = [];
|
| 23 |
+
this.setDataProviders(options.useDefaultDataProvider !== false, options.customDataProviders || []);
|
| 24 |
+
}
|
| 25 |
+
setDataProviders(builtIn, providers) {
|
| 26 |
+
this.dataProviders = [];
|
| 27 |
+
if (builtIn) {
|
| 28 |
+
this.dataProviders.push(new dataProvider_1.HTMLDataProvider('html5', webCustomData_1.htmlData));
|
| 29 |
+
}
|
| 30 |
+
this.dataProviders.push(...providers);
|
| 31 |
+
}
|
| 32 |
+
getDataProviders() {
|
| 33 |
+
return this.dataProviders;
|
| 34 |
+
}
|
| 35 |
+
isVoidElement(e, voidElements) {
|
| 36 |
+
return !!e && arrays.binarySearch(voidElements, e.toLowerCase(), (s1, s2) => s1.localeCompare(s2)) >= 0;
|
| 37 |
+
}
|
| 38 |
+
getVoidElements(languageOrProviders) {
|
| 39 |
+
const dataProviders = Array.isArray(languageOrProviders) ? languageOrProviders : this.getDataProviders().filter(p => p.isApplicable(languageOrProviders));
|
| 40 |
+
const voidTags = [];
|
| 41 |
+
dataProviders.forEach((provider) => {
|
| 42 |
+
provider.provideTags().filter(tag => tag.void).forEach(tag => voidTags.push(tag.name));
|
| 43 |
+
});
|
| 44 |
+
return voidTags.sort();
|
| 45 |
+
}
|
| 46 |
+
isPathAttribute(tag, attr) {
|
| 47 |
+
// should eventually come from custom data
|
| 48 |
+
if (attr === 'src' || attr === 'href') {
|
| 49 |
+
return true;
|
| 50 |
+
}
|
| 51 |
+
const a = PATH_TAG_AND_ATTR[tag];
|
| 52 |
+
if (a) {
|
| 53 |
+
if (typeof a === 'string') {
|
| 54 |
+
return a === attr;
|
| 55 |
+
}
|
| 56 |
+
else {
|
| 57 |
+
return a.indexOf(attr) !== -1;
|
| 58 |
+
}
|
| 59 |
+
}
|
| 60 |
+
return false;
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
exports.HTMLDataManager = HTMLDataManager;
|
| 64 |
+
// Selected from https://stackoverflow.com/a/2725168/1780148
|
| 65 |
+
const PATH_TAG_AND_ATTR = {
|
| 66 |
+
// HTML 4
|
| 67 |
+
a: 'href',
|
| 68 |
+
area: 'href',
|
| 69 |
+
body: 'background',
|
| 70 |
+
blockquote: 'cite',
|
| 71 |
+
del: 'cite',
|
| 72 |
+
form: 'action',
|
| 73 |
+
frame: ['src', 'longdesc'],
|
| 74 |
+
img: ['src', 'longdesc'],
|
| 75 |
+
ins: 'cite',
|
| 76 |
+
link: 'href',
|
| 77 |
+
object: 'data',
|
| 78 |
+
q: 'cite',
|
| 79 |
+
script: 'src',
|
| 80 |
+
// HTML 5
|
| 81 |
+
audio: 'src',
|
| 82 |
+
button: 'formaction',
|
| 83 |
+
command: 'icon',
|
| 84 |
+
embed: 'src',
|
| 85 |
+
html: 'manifest',
|
| 86 |
+
input: ['src', 'formaction'],
|
| 87 |
+
source: 'src',
|
| 88 |
+
track: 'src',
|
| 89 |
+
video: ['src', 'poster']
|
| 90 |
+
};
|
| 91 |
+
});
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/languageFacts/dataProvider.js
CHANGED
|
@@ -1,3 +1,127 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
(function (factory) {
|
| 6 |
+
if (typeof module === "object" && typeof module.exports === "object") {
|
| 7 |
+
var v = factory(require, exports);
|
| 8 |
+
if (v !== undefined) module.exports = v;
|
| 9 |
+
}
|
| 10 |
+
else if (typeof define === "function" && define.amd) {
|
| 11 |
+
define(["require", "exports", "../utils/markup"], factory);
|
| 12 |
+
}
|
| 13 |
+
})(function (require, exports) {
|
| 14 |
+
"use strict";
|
| 15 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 16 |
+
exports.generateDocumentation = exports.HTMLDataProvider = void 0;
|
| 17 |
+
const markup_1 = require("../utils/markup");
|
| 18 |
+
class HTMLDataProvider {
|
| 19 |
+
isApplicable() {
|
| 20 |
+
return true;
|
| 21 |
+
}
|
| 22 |
+
/**
|
| 23 |
+
* Currently, unversioned data uses the V1 implementation
|
| 24 |
+
* In the future when the provider handles multiple versions of HTML custom data,
|
| 25 |
+
* use the latest implementation for unversioned data
|
| 26 |
+
*/
|
| 27 |
+
constructor(id, customData) {
|
| 28 |
+
this.id = id;
|
| 29 |
+
this._tags = [];
|
| 30 |
+
this._tagMap = {};
|
| 31 |
+
this._valueSetMap = {};
|
| 32 |
+
this._tags = customData.tags || [];
|
| 33 |
+
this._globalAttributes = customData.globalAttributes || [];
|
| 34 |
+
this._tags.forEach(t => {
|
| 35 |
+
this._tagMap[t.name.toLowerCase()] = t;
|
| 36 |
+
});
|
| 37 |
+
if (customData.valueSets) {
|
| 38 |
+
customData.valueSets.forEach(vs => {
|
| 39 |
+
this._valueSetMap[vs.name] = vs.values;
|
| 40 |
+
});
|
| 41 |
+
}
|
| 42 |
+
}
|
| 43 |
+
getId() {
|
| 44 |
+
return this.id;
|
| 45 |
+
}
|
| 46 |
+
provideTags() {
|
| 47 |
+
return this._tags;
|
| 48 |
+
}
|
| 49 |
+
provideAttributes(tag) {
|
| 50 |
+
const attributes = [];
|
| 51 |
+
const processAttribute = (a) => {
|
| 52 |
+
attributes.push(a);
|
| 53 |
+
};
|
| 54 |
+
const tagEntry = this._tagMap[tag.toLowerCase()];
|
| 55 |
+
if (tagEntry) {
|
| 56 |
+
tagEntry.attributes.forEach(processAttribute);
|
| 57 |
+
}
|
| 58 |
+
this._globalAttributes.forEach(processAttribute);
|
| 59 |
+
return attributes;
|
| 60 |
+
}
|
| 61 |
+
provideValues(tag, attribute) {
|
| 62 |
+
const values = [];
|
| 63 |
+
attribute = attribute.toLowerCase();
|
| 64 |
+
const processAttributes = (attributes) => {
|
| 65 |
+
attributes.forEach(a => {
|
| 66 |
+
if (a.name.toLowerCase() === attribute) {
|
| 67 |
+
if (a.values) {
|
| 68 |
+
a.values.forEach(v => {
|
| 69 |
+
values.push(v);
|
| 70 |
+
});
|
| 71 |
+
}
|
| 72 |
+
if (a.valueSet) {
|
| 73 |
+
if (this._valueSetMap[a.valueSet]) {
|
| 74 |
+
this._valueSetMap[a.valueSet].forEach(v => {
|
| 75 |
+
values.push(v);
|
| 76 |
+
});
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
}
|
| 80 |
+
});
|
| 81 |
+
};
|
| 82 |
+
const tagEntry = this._tagMap[tag.toLowerCase()];
|
| 83 |
+
if (tagEntry) {
|
| 84 |
+
processAttributes(tagEntry.attributes);
|
| 85 |
+
}
|
| 86 |
+
processAttributes(this._globalAttributes);
|
| 87 |
+
return values;
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
exports.HTMLDataProvider = HTMLDataProvider;
|
| 91 |
+
/**
|
| 92 |
+
* Generate Documentation used in hover/complete
|
| 93 |
+
* From `documentation` and `references`
|
| 94 |
+
*/
|
| 95 |
+
function generateDocumentation(item, settings = {}, doesSupportMarkdown) {
|
| 96 |
+
const result = {
|
| 97 |
+
kind: doesSupportMarkdown ? 'markdown' : 'plaintext',
|
| 98 |
+
value: ''
|
| 99 |
+
};
|
| 100 |
+
if (item.description && settings.documentation !== false) {
|
| 101 |
+
const normalizedDescription = (0, markup_1.normalizeMarkupContent)(item.description);
|
| 102 |
+
if (normalizedDescription) {
|
| 103 |
+
result.value += normalizedDescription.value;
|
| 104 |
+
}
|
| 105 |
+
}
|
| 106 |
+
if (item.references && item.references.length > 0 && settings.references !== false) {
|
| 107 |
+
if (result.value.length) {
|
| 108 |
+
result.value += `\n\n`;
|
| 109 |
+
}
|
| 110 |
+
if (doesSupportMarkdown) {
|
| 111 |
+
result.value += item.references.map(r => {
|
| 112 |
+
return `[${r.name}](${r.url})`;
|
| 113 |
+
}).join(' | ');
|
| 114 |
+
}
|
| 115 |
+
else {
|
| 116 |
+
result.value += item.references.map(r => {
|
| 117 |
+
return `${r.name}: ${r.url}`;
|
| 118 |
+
}).join('\n');
|
| 119 |
+
}
|
| 120 |
+
}
|
| 121 |
+
if (result.value === '') {
|
| 122 |
+
return undefined;
|
| 123 |
+
}
|
| 124 |
+
return result;
|
| 125 |
+
}
|
| 126 |
+
exports.generateDocumentation = generateDocumentation;
|
| 127 |
+
});
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/parser/htmlEntities.js
CHANGED
|
@@ -1,3 +1,2254 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
(function (factory) {
|
| 6 |
+
if (typeof module === "object" && typeof module.exports === "object") {
|
| 7 |
+
var v = factory(require, exports);
|
| 8 |
+
if (v !== undefined) module.exports = v;
|
| 9 |
+
}
|
| 10 |
+
else if (typeof define === "function" && define.amd) {
|
| 11 |
+
define(["require", "exports"], factory);
|
| 12 |
+
}
|
| 13 |
+
})(function (require, exports) {
|
| 14 |
+
"use strict";
|
| 15 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 16 |
+
exports.entities = void 0;
|
| 17 |
+
/**
|
| 18 |
+
* HTML 5 character entities
|
| 19 |
+
* https://www.w3.org/TR/html5/syntax.html#named-character-references
|
| 20 |
+
*/
|
| 21 |
+
exports.entities = {
|
| 22 |
+
"Aacute;": "\u00C1",
|
| 23 |
+
"Aacute": "\u00C1",
|
| 24 |
+
"aacute;": "\u00E1",
|
| 25 |
+
"aacute": "\u00E1",
|
| 26 |
+
"Abreve;": "\u0102",
|
| 27 |
+
"abreve;": "\u0103",
|
| 28 |
+
"ac;": "\u223E",
|
| 29 |
+
"acd;": "\u223F",
|
| 30 |
+
"acE;": "\u223E\u0333",
|
| 31 |
+
"Acirc;": "\u00C2",
|
| 32 |
+
"Acirc": "\u00C2",
|
| 33 |
+
"acirc;": "\u00E2",
|
| 34 |
+
"acirc": "\u00E2",
|
| 35 |
+
"acute;": "\u00B4",
|
| 36 |
+
"acute": "\u00B4",
|
| 37 |
+
"Acy;": "\u0410",
|
| 38 |
+
"acy;": "\u0430",
|
| 39 |
+
"AElig;": "\u00C6",
|
| 40 |
+
"AElig": "\u00C6",
|
| 41 |
+
"aelig;": "\u00E6",
|
| 42 |
+
"aelig": "\u00E6",
|
| 43 |
+
"af;": "\u2061",
|
| 44 |
+
"Afr;": "\uD835\uDD04",
|
| 45 |
+
"afr;": "\uD835\uDD1E",
|
| 46 |
+
"Agrave;": "\u00C0",
|
| 47 |
+
"Agrave": "\u00C0",
|
| 48 |
+
"agrave;": "\u00E0",
|
| 49 |
+
"agrave": "\u00E0",
|
| 50 |
+
"alefsym;": "\u2135",
|
| 51 |
+
"aleph;": "\u2135",
|
| 52 |
+
"Alpha;": "\u0391",
|
| 53 |
+
"alpha;": "\u03B1",
|
| 54 |
+
"Amacr;": "\u0100",
|
| 55 |
+
"amacr;": "\u0101",
|
| 56 |
+
"amalg;": "\u2A3F",
|
| 57 |
+
"AMP;": "\u0026",
|
| 58 |
+
"AMP": "\u0026",
|
| 59 |
+
"amp;": "\u0026",
|
| 60 |
+
"amp": "\u0026",
|
| 61 |
+
"And;": "\u2A53",
|
| 62 |
+
"and;": "\u2227",
|
| 63 |
+
"andand;": "\u2A55",
|
| 64 |
+
"andd;": "\u2A5C",
|
| 65 |
+
"andslope;": "\u2A58",
|
| 66 |
+
"andv;": "\u2A5A",
|
| 67 |
+
"ang;": "\u2220",
|
| 68 |
+
"ange;": "\u29A4",
|
| 69 |
+
"angle;": "\u2220",
|
| 70 |
+
"angmsd;": "\u2221",
|
| 71 |
+
"angmsdaa;": "\u29A8",
|
| 72 |
+
"angmsdab;": "\u29A9",
|
| 73 |
+
"angmsdac;": "\u29AA",
|
| 74 |
+
"angmsdad;": "\u29AB",
|
| 75 |
+
"angmsdae;": "\u29AC",
|
| 76 |
+
"angmsdaf;": "\u29AD",
|
| 77 |
+
"angmsdag;": "\u29AE",
|
| 78 |
+
"angmsdah;": "\u29AF",
|
| 79 |
+
"angrt;": "\u221F",
|
| 80 |
+
"angrtvb;": "\u22BE",
|
| 81 |
+
"angrtvbd;": "\u299D",
|
| 82 |
+
"angsph;": "\u2222",
|
| 83 |
+
"angst;": "\u00C5",
|
| 84 |
+
"angzarr;": "\u237C",
|
| 85 |
+
"Aogon;": "\u0104",
|
| 86 |
+
"aogon;": "\u0105",
|
| 87 |
+
"Aopf;": "\uD835\uDD38",
|
| 88 |
+
"aopf;": "\uD835\uDD52",
|
| 89 |
+
"ap;": "\u2248",
|
| 90 |
+
"apacir;": "\u2A6F",
|
| 91 |
+
"apE;": "\u2A70",
|
| 92 |
+
"ape;": "\u224A",
|
| 93 |
+
"apid;": "\u224B",
|
| 94 |
+
"apos;": "\u0027",
|
| 95 |
+
"ApplyFunction;": "\u2061",
|
| 96 |
+
"approx;": "\u2248",
|
| 97 |
+
"approxeq;": "\u224A",
|
| 98 |
+
"Aring;": "\u00C5",
|
| 99 |
+
"Aring": "\u00C5",
|
| 100 |
+
"aring;": "\u00E5",
|
| 101 |
+
"aring": "\u00E5",
|
| 102 |
+
"Ascr;": "\uD835\uDC9C",
|
| 103 |
+
"ascr;": "\uD835\uDCB6",
|
| 104 |
+
"Assign;": "\u2254",
|
| 105 |
+
"ast;": "\u002A",
|
| 106 |
+
"asymp;": "\u2248",
|
| 107 |
+
"asympeq;": "\u224D",
|
| 108 |
+
"Atilde;": "\u00C3",
|
| 109 |
+
"Atilde": "\u00C3",
|
| 110 |
+
"atilde;": "\u00E3",
|
| 111 |
+
"atilde": "\u00E3",
|
| 112 |
+
"Auml;": "\u00C4",
|
| 113 |
+
"Auml": "\u00C4",
|
| 114 |
+
"auml;": "\u00E4",
|
| 115 |
+
"auml": "\u00E4",
|
| 116 |
+
"awconint;": "\u2233",
|
| 117 |
+
"awint;": "\u2A11",
|
| 118 |
+
"backcong;": "\u224C",
|
| 119 |
+
"backepsilon;": "\u03F6",
|
| 120 |
+
"backprime;": "\u2035",
|
| 121 |
+
"backsim;": "\u223D",
|
| 122 |
+
"backsimeq;": "\u22CD",
|
| 123 |
+
"Backslash;": "\u2216",
|
| 124 |
+
"Barv;": "\u2AE7",
|
| 125 |
+
"barvee;": "\u22BD",
|
| 126 |
+
"Barwed;": "\u2306",
|
| 127 |
+
"barwed;": "\u2305",
|
| 128 |
+
"barwedge;": "\u2305",
|
| 129 |
+
"bbrk;": "\u23B5",
|
| 130 |
+
"bbrktbrk;": "\u23B6",
|
| 131 |
+
"bcong;": "\u224C",
|
| 132 |
+
"Bcy;": "\u0411",
|
| 133 |
+
"bcy;": "\u0431",
|
| 134 |
+
"bdquo;": "\u201E",
|
| 135 |
+
"becaus;": "\u2235",
|
| 136 |
+
"Because;": "\u2235",
|
| 137 |
+
"because;": "\u2235",
|
| 138 |
+
"bemptyv;": "\u29B0",
|
| 139 |
+
"bepsi;": "\u03F6",
|
| 140 |
+
"bernou;": "\u212C",
|
| 141 |
+
"Bernoullis;": "\u212C",
|
| 142 |
+
"Beta;": "\u0392",
|
| 143 |
+
"beta;": "\u03B2",
|
| 144 |
+
"beth;": "\u2136",
|
| 145 |
+
"between;": "\u226C",
|
| 146 |
+
"Bfr;": "\uD835\uDD05",
|
| 147 |
+
"bfr;": "\uD835\uDD1F",
|
| 148 |
+
"bigcap;": "\u22C2",
|
| 149 |
+
"bigcirc;": "\u25EF",
|
| 150 |
+
"bigcup;": "\u22C3",
|
| 151 |
+
"bigodot;": "\u2A00",
|
| 152 |
+
"bigoplus;": "\u2A01",
|
| 153 |
+
"bigotimes;": "\u2A02",
|
| 154 |
+
"bigsqcup;": "\u2A06",
|
| 155 |
+
"bigstar;": "\u2605",
|
| 156 |
+
"bigtriangledown;": "\u25BD",
|
| 157 |
+
"bigtriangleup;": "\u25B3",
|
| 158 |
+
"biguplus;": "\u2A04",
|
| 159 |
+
"bigvee;": "\u22C1",
|
| 160 |
+
"bigwedge;": "\u22C0",
|
| 161 |
+
"bkarow;": "\u290D",
|
| 162 |
+
"blacklozenge;": "\u29EB",
|
| 163 |
+
"blacksquare;": "\u25AA",
|
| 164 |
+
"blacktriangle;": "\u25B4",
|
| 165 |
+
"blacktriangledown;": "\u25BE",
|
| 166 |
+
"blacktriangleleft;": "\u25C2",
|
| 167 |
+
"blacktriangleright;": "\u25B8",
|
| 168 |
+
"blank;": "\u2423",
|
| 169 |
+
"blk12;": "\u2592",
|
| 170 |
+
"blk14;": "\u2591",
|
| 171 |
+
"blk34;": "\u2593",
|
| 172 |
+
"block;": "\u2588",
|
| 173 |
+
"bne;": "\u003D\u20E5",
|
| 174 |
+
"bnequiv;": "\u2261\u20E5",
|
| 175 |
+
"bNot;": "\u2AED",
|
| 176 |
+
"bnot;": "\u2310",
|
| 177 |
+
"Bopf;": "\uD835\uDD39",
|
| 178 |
+
"bopf;": "\uD835\uDD53",
|
| 179 |
+
"bot;": "\u22A5",
|
| 180 |
+
"bottom;": "\u22A5",
|
| 181 |
+
"bowtie;": "\u22C8",
|
| 182 |
+
"boxbox;": "\u29C9",
|
| 183 |
+
"boxDL;": "\u2557",
|
| 184 |
+
"boxDl;": "\u2556",
|
| 185 |
+
"boxdL;": "\u2555",
|
| 186 |
+
"boxdl;": "\u2510",
|
| 187 |
+
"boxDR;": "\u2554",
|
| 188 |
+
"boxDr;": "\u2553",
|
| 189 |
+
"boxdR;": "\u2552",
|
| 190 |
+
"boxdr;": "\u250C",
|
| 191 |
+
"boxH;": "\u2550",
|
| 192 |
+
"boxh;": "\u2500",
|
| 193 |
+
"boxHD;": "\u2566",
|
| 194 |
+
"boxHd;": "\u2564",
|
| 195 |
+
"boxhD;": "\u2565",
|
| 196 |
+
"boxhd;": "\u252C",
|
| 197 |
+
"boxHU;": "\u2569",
|
| 198 |
+
"boxHu;": "\u2567",
|
| 199 |
+
"boxhU;": "\u2568",
|
| 200 |
+
"boxhu;": "\u2534",
|
| 201 |
+
"boxminus;": "\u229F",
|
| 202 |
+
"boxplus;": "\u229E",
|
| 203 |
+
"boxtimes;": "\u22A0",
|
| 204 |
+
"boxUL;": "\u255D",
|
| 205 |
+
"boxUl;": "\u255C",
|
| 206 |
+
"boxuL;": "\u255B",
|
| 207 |
+
"boxul;": "\u2518",
|
| 208 |
+
"boxUR;": "\u255A",
|
| 209 |
+
"boxUr;": "\u2559",
|
| 210 |
+
"boxuR;": "\u2558",
|
| 211 |
+
"boxur;": "\u2514",
|
| 212 |
+
"boxV;": "\u2551",
|
| 213 |
+
"boxv;": "\u2502",
|
| 214 |
+
"boxVH;": "\u256C",
|
| 215 |
+
"boxVh;": "\u256B",
|
| 216 |
+
"boxvH;": "\u256A",
|
| 217 |
+
"boxvh;": "\u253C",
|
| 218 |
+
"boxVL;": "\u2563",
|
| 219 |
+
"boxVl;": "\u2562",
|
| 220 |
+
"boxvL;": "\u2561",
|
| 221 |
+
"boxvl;": "\u2524",
|
| 222 |
+
"boxVR;": "\u2560",
|
| 223 |
+
"boxVr;": "\u255F",
|
| 224 |
+
"boxvR;": "\u255E",
|
| 225 |
+
"boxvr;": "\u251C",
|
| 226 |
+
"bprime;": "\u2035",
|
| 227 |
+
"Breve;": "\u02D8",
|
| 228 |
+
"breve;": "\u02D8",
|
| 229 |
+
"brvbar;": "\u00A6",
|
| 230 |
+
"brvbar": "\u00A6",
|
| 231 |
+
"Bscr;": "\u212C",
|
| 232 |
+
"bscr;": "\uD835\uDCB7",
|
| 233 |
+
"bsemi;": "\u204F",
|
| 234 |
+
"bsim;": "\u223D",
|
| 235 |
+
"bsime;": "\u22CD",
|
| 236 |
+
"bsol;": "\u005C",
|
| 237 |
+
"bsolb;": "\u29C5",
|
| 238 |
+
"bsolhsub;": "\u27C8",
|
| 239 |
+
"bull;": "\u2022",
|
| 240 |
+
"bullet;": "\u2022",
|
| 241 |
+
"bump;": "\u224E",
|
| 242 |
+
"bumpE;": "\u2AAE",
|
| 243 |
+
"bumpe;": "\u224F",
|
| 244 |
+
"Bumpeq;": "\u224E",
|
| 245 |
+
"bumpeq;": "\u224F",
|
| 246 |
+
"Cacute;": "\u0106",
|
| 247 |
+
"cacute;": "\u0107",
|
| 248 |
+
"Cap;": "\u22D2",
|
| 249 |
+
"cap;": "\u2229",
|
| 250 |
+
"capand;": "\u2A44",
|
| 251 |
+
"capbrcup;": "\u2A49",
|
| 252 |
+
"capcap;": "\u2A4B",
|
| 253 |
+
"capcup;": "\u2A47",
|
| 254 |
+
"capdot;": "\u2A40",
|
| 255 |
+
"CapitalDifferentialD;": "\u2145",
|
| 256 |
+
"caps;": "\u2229\uFE00",
|
| 257 |
+
"caret;": "\u2041",
|
| 258 |
+
"caron;": "\u02C7",
|
| 259 |
+
"Cayleys;": "\u212D",
|
| 260 |
+
"ccaps;": "\u2A4D",
|
| 261 |
+
"Ccaron;": "\u010C",
|
| 262 |
+
"ccaron;": "\u010D",
|
| 263 |
+
"Ccedil;": "\u00C7",
|
| 264 |
+
"Ccedil": "\u00C7",
|
| 265 |
+
"ccedil;": "\u00E7",
|
| 266 |
+
"ccedil": "\u00E7",
|
| 267 |
+
"Ccirc;": "\u0108",
|
| 268 |
+
"ccirc;": "\u0109",
|
| 269 |
+
"Cconint;": "\u2230",
|
| 270 |
+
"ccups;": "\u2A4C",
|
| 271 |
+
"ccupssm;": "\u2A50",
|
| 272 |
+
"Cdot;": "\u010A",
|
| 273 |
+
"cdot;": "\u010B",
|
| 274 |
+
"cedil;": "\u00B8",
|
| 275 |
+
"cedil": "\u00B8",
|
| 276 |
+
"Cedilla;": "\u00B8",
|
| 277 |
+
"cemptyv;": "\u29B2",
|
| 278 |
+
"cent;": "\u00A2",
|
| 279 |
+
"cent": "\u00A2",
|
| 280 |
+
"CenterDot;": "\u00B7",
|
| 281 |
+
"centerdot;": "\u00B7",
|
| 282 |
+
"Cfr;": "\u212D",
|
| 283 |
+
"cfr;": "\uD835\uDD20",
|
| 284 |
+
"CHcy;": "\u0427",
|
| 285 |
+
"chcy;": "\u0447",
|
| 286 |
+
"check;": "\u2713",
|
| 287 |
+
"checkmark;": "\u2713",
|
| 288 |
+
"Chi;": "\u03A7",
|
| 289 |
+
"chi;": "\u03C7",
|
| 290 |
+
"cir;": "\u25CB",
|
| 291 |
+
"circ;": "\u02C6",
|
| 292 |
+
"circeq;": "\u2257",
|
| 293 |
+
"circlearrowleft;": "\u21BA",
|
| 294 |
+
"circlearrowright;": "\u21BB",
|
| 295 |
+
"circledast;": "\u229B",
|
| 296 |
+
"circledcirc;": "\u229A",
|
| 297 |
+
"circleddash;": "\u229D",
|
| 298 |
+
"CircleDot;": "\u2299",
|
| 299 |
+
"circledR;": "\u00AE",
|
| 300 |
+
"circledS;": "\u24C8",
|
| 301 |
+
"CircleMinus;": "\u2296",
|
| 302 |
+
"CirclePlus;": "\u2295",
|
| 303 |
+
"CircleTimes;": "\u2297",
|
| 304 |
+
"cirE;": "\u29C3",
|
| 305 |
+
"cire;": "\u2257",
|
| 306 |
+
"cirfnint;": "\u2A10",
|
| 307 |
+
"cirmid;": "\u2AEF",
|
| 308 |
+
"cirscir;": "\u29C2",
|
| 309 |
+
"ClockwiseContourIntegral;": "\u2232",
|
| 310 |
+
"CloseCurlyDoubleQuote;": "\u201D",
|
| 311 |
+
"CloseCurlyQuote;": "\u2019",
|
| 312 |
+
"clubs;": "\u2663",
|
| 313 |
+
"clubsuit;": "\u2663",
|
| 314 |
+
"Colon;": "\u2237",
|
| 315 |
+
"colon;": "\u003A",
|
| 316 |
+
"Colone;": "\u2A74",
|
| 317 |
+
"colone;": "\u2254",
|
| 318 |
+
"coloneq;": "\u2254",
|
| 319 |
+
"comma;": "\u002C",
|
| 320 |
+
"commat;": "\u0040",
|
| 321 |
+
"comp;": "\u2201",
|
| 322 |
+
"compfn;": "\u2218",
|
| 323 |
+
"complement;": "\u2201",
|
| 324 |
+
"complexes;": "\u2102",
|
| 325 |
+
"cong;": "\u2245",
|
| 326 |
+
"congdot;": "\u2A6D",
|
| 327 |
+
"Congruent;": "\u2261",
|
| 328 |
+
"Conint;": "\u222F",
|
| 329 |
+
"conint;": "\u222E",
|
| 330 |
+
"ContourIntegral;": "\u222E",
|
| 331 |
+
"Copf;": "\u2102",
|
| 332 |
+
"copf;": "\uD835\uDD54",
|
| 333 |
+
"coprod;": "\u2210",
|
| 334 |
+
"Coproduct;": "\u2210",
|
| 335 |
+
"COPY;": "\u00A9",
|
| 336 |
+
"COPY": "\u00A9",
|
| 337 |
+
"copy;": "\u00A9",
|
| 338 |
+
"copy": "\u00A9",
|
| 339 |
+
"copysr;": "\u2117",
|
| 340 |
+
"CounterClockwiseContourIntegral;": "\u2233",
|
| 341 |
+
"crarr;": "\u21B5",
|
| 342 |
+
"Cross;": "\u2A2F",
|
| 343 |
+
"cross;": "\u2717",
|
| 344 |
+
"Cscr;": "\uD835\uDC9E",
|
| 345 |
+
"cscr;": "\uD835\uDCB8",
|
| 346 |
+
"csub;": "\u2ACF",
|
| 347 |
+
"csube;": "\u2AD1",
|
| 348 |
+
"csup;": "\u2AD0",
|
| 349 |
+
"csupe;": "\u2AD2",
|
| 350 |
+
"ctdot;": "\u22EF",
|
| 351 |
+
"cudarrl;": "\u2938",
|
| 352 |
+
"cudarrr;": "\u2935",
|
| 353 |
+
"cuepr;": "\u22DE",
|
| 354 |
+
"cuesc;": "\u22DF",
|
| 355 |
+
"cularr;": "\u21B6",
|
| 356 |
+
"cularrp;": "\u293D",
|
| 357 |
+
"Cup;": "\u22D3",
|
| 358 |
+
"cup;": "\u222A",
|
| 359 |
+
"cupbrcap;": "\u2A48",
|
| 360 |
+
"CupCap;": "\u224D",
|
| 361 |
+
"cupcap;": "\u2A46",
|
| 362 |
+
"cupcup;": "\u2A4A",
|
| 363 |
+
"cupdot;": "\u228D",
|
| 364 |
+
"cupor;": "\u2A45",
|
| 365 |
+
"cups;": "\u222A\uFE00",
|
| 366 |
+
"curarr;": "\u21B7",
|
| 367 |
+
"curarrm;": "\u293C",
|
| 368 |
+
"curlyeqprec;": "\u22DE",
|
| 369 |
+
"curlyeqsucc;": "\u22DF",
|
| 370 |
+
"curlyvee;": "\u22CE",
|
| 371 |
+
"curlywedge;": "\u22CF",
|
| 372 |
+
"curren;": "\u00A4",
|
| 373 |
+
"curren": "\u00A4",
|
| 374 |
+
"curvearrowleft;": "\u21B6",
|
| 375 |
+
"curvearrowright;": "\u21B7",
|
| 376 |
+
"cuvee;": "\u22CE",
|
| 377 |
+
"cuwed;": "\u22CF",
|
| 378 |
+
"cwconint;": "\u2232",
|
| 379 |
+
"cwint;": "\u2231",
|
| 380 |
+
"cylcty;": "\u232D",
|
| 381 |
+
"Dagger;": "\u2021",
|
| 382 |
+
"dagger;": "\u2020",
|
| 383 |
+
"daleth;": "\u2138",
|
| 384 |
+
"Darr;": "\u21A1",
|
| 385 |
+
"dArr;": "\u21D3",
|
| 386 |
+
"darr;": "\u2193",
|
| 387 |
+
"dash;": "\u2010",
|
| 388 |
+
"Dashv;": "\u2AE4",
|
| 389 |
+
"dashv;": "\u22A3",
|
| 390 |
+
"dbkarow;": "\u290F",
|
| 391 |
+
"dblac;": "\u02DD",
|
| 392 |
+
"Dcaron;": "\u010E",
|
| 393 |
+
"dcaron;": "\u010F",
|
| 394 |
+
"Dcy;": "\u0414",
|
| 395 |
+
"dcy;": "\u0434",
|
| 396 |
+
"DD;": "\u2145",
|
| 397 |
+
"dd;": "\u2146",
|
| 398 |
+
"ddagger;": "\u2021",
|
| 399 |
+
"ddarr;": "\u21CA",
|
| 400 |
+
"DDotrahd;": "\u2911",
|
| 401 |
+
"ddotseq;": "\u2A77",
|
| 402 |
+
"deg;": "\u00B0",
|
| 403 |
+
"deg": "\u00B0",
|
| 404 |
+
"Del;": "\u2207",
|
| 405 |
+
"Delta;": "\u0394",
|
| 406 |
+
"delta;": "\u03B4",
|
| 407 |
+
"demptyv;": "\u29B1",
|
| 408 |
+
"dfisht;": "\u297F",
|
| 409 |
+
"Dfr;": "\uD835\uDD07",
|
| 410 |
+
"dfr;": "\uD835\uDD21",
|
| 411 |
+
"dHar;": "\u2965",
|
| 412 |
+
"dharl;": "\u21C3",
|
| 413 |
+
"dharr;": "\u21C2",
|
| 414 |
+
"DiacriticalAcute;": "\u00B4",
|
| 415 |
+
"DiacriticalDot;": "\u02D9",
|
| 416 |
+
"DiacriticalDoubleAcute;": "\u02DD",
|
| 417 |
+
"DiacriticalGrave;": "\u0060",
|
| 418 |
+
"DiacriticalTilde;": "\u02DC",
|
| 419 |
+
"diam;": "\u22C4",
|
| 420 |
+
"Diamond;": "\u22C4",
|
| 421 |
+
"diamond;": "\u22C4",
|
| 422 |
+
"diamondsuit;": "\u2666",
|
| 423 |
+
"diams;": "\u2666",
|
| 424 |
+
"die;": "\u00A8",
|
| 425 |
+
"DifferentialD;": "\u2146",
|
| 426 |
+
"digamma;": "\u03DD",
|
| 427 |
+
"disin;": "\u22F2",
|
| 428 |
+
"div;": "\u00F7",
|
| 429 |
+
"divide;": "\u00F7",
|
| 430 |
+
"divide": "\u00F7",
|
| 431 |
+
"divideontimes;": "\u22C7",
|
| 432 |
+
"divonx;": "\u22C7",
|
| 433 |
+
"DJcy;": "\u0402",
|
| 434 |
+
"djcy;": "\u0452",
|
| 435 |
+
"dlcorn;": "\u231E",
|
| 436 |
+
"dlcrop;": "\u230D",
|
| 437 |
+
"dollar;": "\u0024",
|
| 438 |
+
"Dopf;": "\uD835\uDD3B",
|
| 439 |
+
"dopf;": "\uD835\uDD55",
|
| 440 |
+
"Dot;": "\u00A8",
|
| 441 |
+
"dot;": "\u02D9",
|
| 442 |
+
"DotDot;": "\u20DC",
|
| 443 |
+
"doteq;": "\u2250",
|
| 444 |
+
"doteqdot;": "\u2251",
|
| 445 |
+
"DotEqual;": "\u2250",
|
| 446 |
+
"dotminus;": "\u2238",
|
| 447 |
+
"dotplus;": "\u2214",
|
| 448 |
+
"dotsquare;": "\u22A1",
|
| 449 |
+
"doublebarwedge;": "\u2306",
|
| 450 |
+
"DoubleContourIntegral;": "\u222F",
|
| 451 |
+
"DoubleDot;": "\u00A8",
|
| 452 |
+
"DoubleDownArrow;": "\u21D3",
|
| 453 |
+
"DoubleLeftArrow;": "\u21D0",
|
| 454 |
+
"DoubleLeftRightArrow;": "\u21D4",
|
| 455 |
+
"DoubleLeftTee;": "\u2AE4",
|
| 456 |
+
"DoubleLongLeftArrow;": "\u27F8",
|
| 457 |
+
"DoubleLongLeftRightArrow;": "\u27FA",
|
| 458 |
+
"DoubleLongRightArrow;": "\u27F9",
|
| 459 |
+
"DoubleRightArrow;": "\u21D2",
|
| 460 |
+
"DoubleRightTee;": "\u22A8",
|
| 461 |
+
"DoubleUpArrow;": "\u21D1",
|
| 462 |
+
"DoubleUpDownArrow;": "\u21D5",
|
| 463 |
+
"DoubleVerticalBar;": "\u2225",
|
| 464 |
+
"DownArrow;": "\u2193",
|
| 465 |
+
"Downarrow;": "\u21D3",
|
| 466 |
+
"downarrow;": "\u2193",
|
| 467 |
+
"DownArrowBar;": "\u2913",
|
| 468 |
+
"DownArrowUpArrow;": "\u21F5",
|
| 469 |
+
"DownBreve;": "\u0311",
|
| 470 |
+
"downdownarrows;": "\u21CA",
|
| 471 |
+
"downharpoonleft;": "\u21C3",
|
| 472 |
+
"downharpoonright;": "\u21C2",
|
| 473 |
+
"DownLeftRightVector;": "\u2950",
|
| 474 |
+
"DownLeftTeeVector;": "\u295E",
|
| 475 |
+
"DownLeftVector;": "\u21BD",
|
| 476 |
+
"DownLeftVectorBar;": "\u2956",
|
| 477 |
+
"DownRightTeeVector;": "\u295F",
|
| 478 |
+
"DownRightVector;": "\u21C1",
|
| 479 |
+
"DownRightVectorBar;": "\u2957",
|
| 480 |
+
"DownTee;": "\u22A4",
|
| 481 |
+
"DownTeeArrow;": "\u21A7",
|
| 482 |
+
"drbkarow;": "\u2910",
|
| 483 |
+
"drcorn;": "\u231F",
|
| 484 |
+
"drcrop;": "\u230C",
|
| 485 |
+
"Dscr;": "\uD835\uDC9F",
|
| 486 |
+
"dscr;": "\uD835\uDCB9",
|
| 487 |
+
"DScy;": "\u0405",
|
| 488 |
+
"dscy;": "\u0455",
|
| 489 |
+
"dsol;": "\u29F6",
|
| 490 |
+
"Dstrok;": "\u0110",
|
| 491 |
+
"dstrok;": "\u0111",
|
| 492 |
+
"dtdot;": "\u22F1",
|
| 493 |
+
"dtri;": "\u25BF",
|
| 494 |
+
"dtrif;": "\u25BE",
|
| 495 |
+
"duarr;": "\u21F5",
|
| 496 |
+
"duhar;": "\u296F",
|
| 497 |
+
"dwangle;": "\u29A6",
|
| 498 |
+
"DZcy;": "\u040F",
|
| 499 |
+
"dzcy;": "\u045F",
|
| 500 |
+
"dzigrarr;": "\u27FF",
|
| 501 |
+
"Eacute;": "\u00C9",
|
| 502 |
+
"Eacute": "\u00C9",
|
| 503 |
+
"eacute;": "\u00E9",
|
| 504 |
+
"eacute": "\u00E9",
|
| 505 |
+
"easter;": "\u2A6E",
|
| 506 |
+
"Ecaron;": "\u011A",
|
| 507 |
+
"ecaron;": "\u011B",
|
| 508 |
+
"ecir;": "\u2256",
|
| 509 |
+
"Ecirc;": "\u00CA",
|
| 510 |
+
"Ecirc": "\u00CA",
|
| 511 |
+
"ecirc;": "\u00EA",
|
| 512 |
+
"ecirc": "\u00EA",
|
| 513 |
+
"ecolon;": "\u2255",
|
| 514 |
+
"Ecy;": "\u042D",
|
| 515 |
+
"ecy;": "\u044D",
|
| 516 |
+
"eDDot;": "\u2A77",
|
| 517 |
+
"Edot;": "\u0116",
|
| 518 |
+
"eDot;": "\u2251",
|
| 519 |
+
"edot;": "\u0117",
|
| 520 |
+
"ee;": "\u2147",
|
| 521 |
+
"efDot;": "\u2252",
|
| 522 |
+
"Efr;": "\uD835\uDD08",
|
| 523 |
+
"efr;": "\uD835\uDD22",
|
| 524 |
+
"eg;": "\u2A9A",
|
| 525 |
+
"Egrave;": "\u00C8",
|
| 526 |
+
"Egrave": "\u00C8",
|
| 527 |
+
"egrave;": "\u00E8",
|
| 528 |
+
"egrave": "\u00E8",
|
| 529 |
+
"egs;": "\u2A96",
|
| 530 |
+
"egsdot;": "\u2A98",
|
| 531 |
+
"el;": "\u2A99",
|
| 532 |
+
"Element;": "\u2208",
|
| 533 |
+
"elinters;": "\u23E7",
|
| 534 |
+
"ell;": "\u2113",
|
| 535 |
+
"els;": "\u2A95",
|
| 536 |
+
"elsdot;": "\u2A97",
|
| 537 |
+
"Emacr;": "\u0112",
|
| 538 |
+
"emacr;": "\u0113",
|
| 539 |
+
"empty;": "\u2205",
|
| 540 |
+
"emptyset;": "\u2205",
|
| 541 |
+
"EmptySmallSquare;": "\u25FB",
|
| 542 |
+
"emptyv;": "\u2205",
|
| 543 |
+
"EmptyVerySmallSquare;": "\u25AB",
|
| 544 |
+
"emsp;": "\u2003",
|
| 545 |
+
"emsp13;": "\u2004",
|
| 546 |
+
"emsp14;": "\u2005",
|
| 547 |
+
"ENG;": "\u014A",
|
| 548 |
+
"eng;": "\u014B",
|
| 549 |
+
"ensp;": "\u2002",
|
| 550 |
+
"Eogon;": "\u0118",
|
| 551 |
+
"eogon;": "\u0119",
|
| 552 |
+
"Eopf;": "\uD835\uDD3C",
|
| 553 |
+
"eopf;": "\uD835\uDD56",
|
| 554 |
+
"epar;": "\u22D5",
|
| 555 |
+
"eparsl;": "\u29E3",
|
| 556 |
+
"eplus;": "\u2A71",
|
| 557 |
+
"epsi;": "\u03B5",
|
| 558 |
+
"Epsilon;": "\u0395",
|
| 559 |
+
"epsilon;": "\u03B5",
|
| 560 |
+
"epsiv;": "\u03F5",
|
| 561 |
+
"eqcirc;": "\u2256",
|
| 562 |
+
"eqcolon;": "\u2255",
|
| 563 |
+
"eqsim;": "\u2242",
|
| 564 |
+
"eqslantgtr;": "\u2A96",
|
| 565 |
+
"eqslantless;": "\u2A95",
|
| 566 |
+
"Equal;": "\u2A75",
|
| 567 |
+
"equals;": "\u003D",
|
| 568 |
+
"EqualTilde;": "\u2242",
|
| 569 |
+
"equest;": "\u225F",
|
| 570 |
+
"Equilibrium;": "\u21CC",
|
| 571 |
+
"equiv;": "\u2261",
|
| 572 |
+
"equivDD;": "\u2A78",
|
| 573 |
+
"eqvparsl;": "\u29E5",
|
| 574 |
+
"erarr;": "\u2971",
|
| 575 |
+
"erDot;": "\u2253",
|
| 576 |
+
"Escr;": "\u2130",
|
| 577 |
+
"escr;": "\u212F",
|
| 578 |
+
"esdot;": "\u2250",
|
| 579 |
+
"Esim;": "\u2A73",
|
| 580 |
+
"esim;": "\u2242",
|
| 581 |
+
"Eta;": "\u0397",
|
| 582 |
+
"eta;": "\u03B7",
|
| 583 |
+
"ETH;": "\u00D0",
|
| 584 |
+
"ETH": "\u00D0",
|
| 585 |
+
"eth;": "\u00F0",
|
| 586 |
+
"eth": "\u00F0",
|
| 587 |
+
"Euml;": "\u00CB",
|
| 588 |
+
"Euml": "\u00CB",
|
| 589 |
+
"euml;": "\u00EB",
|
| 590 |
+
"euml": "\u00EB",
|
| 591 |
+
"euro;": "\u20AC",
|
| 592 |
+
"excl;": "\u0021",
|
| 593 |
+
"exist;": "\u2203",
|
| 594 |
+
"Exists;": "\u2203",
|
| 595 |
+
"expectation;": "\u2130",
|
| 596 |
+
"ExponentialE;": "\u2147",
|
| 597 |
+
"exponentiale;": "\u2147",
|
| 598 |
+
"fallingdotseq;": "\u2252",
|
| 599 |
+
"Fcy;": "\u0424",
|
| 600 |
+
"fcy;": "\u0444",
|
| 601 |
+
"female;": "\u2640",
|
| 602 |
+
"ffilig;": "\uFB03",
|
| 603 |
+
"fflig;": "\uFB00",
|
| 604 |
+
"ffllig;": "\uFB04",
|
| 605 |
+
"Ffr;": "\uD835\uDD09",
|
| 606 |
+
"ffr;": "\uD835\uDD23",
|
| 607 |
+
"filig;": "\uFB01",
|
| 608 |
+
"FilledSmallSquare;": "\u25FC",
|
| 609 |
+
"FilledVerySmallSquare;": "\u25AA",
|
| 610 |
+
"fjlig;": "\u0066\u006A",
|
| 611 |
+
"flat;": "\u266D",
|
| 612 |
+
"fllig;": "\uFB02",
|
| 613 |
+
"fltns;": "\u25B1",
|
| 614 |
+
"fnof;": "\u0192",
|
| 615 |
+
"Fopf;": "\uD835\uDD3D",
|
| 616 |
+
"fopf;": "\uD835\uDD57",
|
| 617 |
+
"ForAll;": "\u2200",
|
| 618 |
+
"forall;": "\u2200",
|
| 619 |
+
"fork;": "\u22D4",
|
| 620 |
+
"forkv;": "\u2AD9",
|
| 621 |
+
"Fouriertrf;": "\u2131",
|
| 622 |
+
"fpartint;": "\u2A0D",
|
| 623 |
+
"frac12;": "\u00BD",
|
| 624 |
+
"frac12": "\u00BD",
|
| 625 |
+
"frac13;": "\u2153",
|
| 626 |
+
"frac14;": "\u00BC",
|
| 627 |
+
"frac14": "\u00BC",
|
| 628 |
+
"frac15;": "\u2155",
|
| 629 |
+
"frac16;": "\u2159",
|
| 630 |
+
"frac18;": "\u215B",
|
| 631 |
+
"frac23;": "\u2154",
|
| 632 |
+
"frac25;": "\u2156",
|
| 633 |
+
"frac34;": "\u00BE",
|
| 634 |
+
"frac34": "\u00BE",
|
| 635 |
+
"frac35;": "\u2157",
|
| 636 |
+
"frac38;": "\u215C",
|
| 637 |
+
"frac45;": "\u2158",
|
| 638 |
+
"frac56;": "\u215A",
|
| 639 |
+
"frac58;": "\u215D",
|
| 640 |
+
"frac78;": "\u215E",
|
| 641 |
+
"frasl;": "\u2044",
|
| 642 |
+
"frown;": "\u2322",
|
| 643 |
+
"Fscr;": "\u2131",
|
| 644 |
+
"fscr;": "\uD835\uDCBB",
|
| 645 |
+
"gacute;": "\u01F5",
|
| 646 |
+
"Gamma;": "\u0393",
|
| 647 |
+
"gamma;": "\u03B3",
|
| 648 |
+
"Gammad;": "\u03DC",
|
| 649 |
+
"gammad;": "\u03DD",
|
| 650 |
+
"gap;": "\u2A86",
|
| 651 |
+
"Gbreve;": "\u011E",
|
| 652 |
+
"gbreve;": "\u011F",
|
| 653 |
+
"Gcedil;": "\u0122",
|
| 654 |
+
"Gcirc;": "\u011C",
|
| 655 |
+
"gcirc;": "\u011D",
|
| 656 |
+
"Gcy;": "\u0413",
|
| 657 |
+
"gcy;": "\u0433",
|
| 658 |
+
"Gdot;": "\u0120",
|
| 659 |
+
"gdot;": "\u0121",
|
| 660 |
+
"gE;": "\u2267",
|
| 661 |
+
"ge;": "\u2265",
|
| 662 |
+
"gEl;": "\u2A8C",
|
| 663 |
+
"gel;": "\u22DB",
|
| 664 |
+
"geq;": "\u2265",
|
| 665 |
+
"geqq;": "\u2267",
|
| 666 |
+
"geqslant;": "\u2A7E",
|
| 667 |
+
"ges;": "\u2A7E",
|
| 668 |
+
"gescc;": "\u2AA9",
|
| 669 |
+
"gesdot;": "\u2A80",
|
| 670 |
+
"gesdoto;": "\u2A82",
|
| 671 |
+
"gesdotol;": "\u2A84",
|
| 672 |
+
"gesl;": "\u22DB\uFE00",
|
| 673 |
+
"gesles;": "\u2A94",
|
| 674 |
+
"Gfr;": "\uD835\uDD0A",
|
| 675 |
+
"gfr;": "\uD835\uDD24",
|
| 676 |
+
"Gg;": "\u22D9",
|
| 677 |
+
"gg;": "\u226B",
|
| 678 |
+
"ggg;": "\u22D9",
|
| 679 |
+
"gimel;": "\u2137",
|
| 680 |
+
"GJcy;": "\u0403",
|
| 681 |
+
"gjcy;": "\u0453",
|
| 682 |
+
"gl;": "\u2277",
|
| 683 |
+
"gla;": "\u2AA5",
|
| 684 |
+
"glE;": "\u2A92",
|
| 685 |
+
"glj;": "\u2AA4",
|
| 686 |
+
"gnap;": "\u2A8A",
|
| 687 |
+
"gnapprox;": "\u2A8A",
|
| 688 |
+
"gnE;": "\u2269",
|
| 689 |
+
"gne;": "\u2A88",
|
| 690 |
+
"gneq;": "\u2A88",
|
| 691 |
+
"gneqq;": "\u2269",
|
| 692 |
+
"gnsim;": "\u22E7",
|
| 693 |
+
"Gopf;": "\uD835\uDD3E",
|
| 694 |
+
"gopf;": "\uD835\uDD58",
|
| 695 |
+
"grave;": "\u0060",
|
| 696 |
+
"GreaterEqual;": "\u2265",
|
| 697 |
+
"GreaterEqualLess;": "\u22DB",
|
| 698 |
+
"GreaterFullEqual;": "\u2267",
|
| 699 |
+
"GreaterGreater;": "\u2AA2",
|
| 700 |
+
"GreaterLess;": "\u2277",
|
| 701 |
+
"GreaterSlantEqual;": "\u2A7E",
|
| 702 |
+
"GreaterTilde;": "\u2273",
|
| 703 |
+
"Gscr;": "\uD835\uDCA2",
|
| 704 |
+
"gscr;": "\u210A",
|
| 705 |
+
"gsim;": "\u2273",
|
| 706 |
+
"gsime;": "\u2A8E",
|
| 707 |
+
"gsiml;": "\u2A90",
|
| 708 |
+
"GT;": "\u003E",
|
| 709 |
+
"GT": "\u003E",
|
| 710 |
+
"Gt;": "\u226B",
|
| 711 |
+
"gt;": "\u003E",
|
| 712 |
+
"gt": "\u003E",
|
| 713 |
+
"gtcc;": "\u2AA7",
|
| 714 |
+
"gtcir;": "\u2A7A",
|
| 715 |
+
"gtdot;": "\u22D7",
|
| 716 |
+
"gtlPar;": "\u2995",
|
| 717 |
+
"gtquest;": "\u2A7C",
|
| 718 |
+
"gtrapprox;": "\u2A86",
|
| 719 |
+
"gtrarr;": "\u2978",
|
| 720 |
+
"gtrdot;": "\u22D7",
|
| 721 |
+
"gtreqless;": "\u22DB",
|
| 722 |
+
"gtreqqless;": "\u2A8C",
|
| 723 |
+
"gtrless;": "\u2277",
|
| 724 |
+
"gtrsim;": "\u2273",
|
| 725 |
+
"gvertneqq;": "\u2269\uFE00",
|
| 726 |
+
"gvnE;": "\u2269\uFE00",
|
| 727 |
+
"Hacek;": "\u02C7",
|
| 728 |
+
"hairsp;": "\u200A",
|
| 729 |
+
"half;": "\u00BD",
|
| 730 |
+
"hamilt;": "\u210B",
|
| 731 |
+
"HARDcy;": "\u042A",
|
| 732 |
+
"hardcy;": "\u044A",
|
| 733 |
+
"hArr;": "\u21D4",
|
| 734 |
+
"harr;": "\u2194",
|
| 735 |
+
"harrcir;": "\u2948",
|
| 736 |
+
"harrw;": "\u21AD",
|
| 737 |
+
"Hat;": "\u005E",
|
| 738 |
+
"hbar;": "\u210F",
|
| 739 |
+
"Hcirc;": "\u0124",
|
| 740 |
+
"hcirc;": "\u0125",
|
| 741 |
+
"hearts;": "\u2665",
|
| 742 |
+
"heartsuit;": "\u2665",
|
| 743 |
+
"hellip;": "\u2026",
|
| 744 |
+
"hercon;": "\u22B9",
|
| 745 |
+
"Hfr;": "\u210C",
|
| 746 |
+
"hfr;": "\uD835\uDD25",
|
| 747 |
+
"HilbertSpace;": "\u210B",
|
| 748 |
+
"hksearow;": "\u2925",
|
| 749 |
+
"hkswarow;": "\u2926",
|
| 750 |
+
"hoarr;": "\u21FF",
|
| 751 |
+
"homtht;": "\u223B",
|
| 752 |
+
"hookleftarrow;": "\u21A9",
|
| 753 |
+
"hookrightarrow;": "\u21AA",
|
| 754 |
+
"Hopf;": "\u210D",
|
| 755 |
+
"hopf;": "\uD835\uDD59",
|
| 756 |
+
"horbar;": "\u2015",
|
| 757 |
+
"HorizontalLine;": "\u2500",
|
| 758 |
+
"Hscr;": "\u210B",
|
| 759 |
+
"hscr;": "\uD835\uDCBD",
|
| 760 |
+
"hslash;": "\u210F",
|
| 761 |
+
"Hstrok;": "\u0126",
|
| 762 |
+
"hstrok;": "\u0127",
|
| 763 |
+
"HumpDownHump;": "\u224E",
|
| 764 |
+
"HumpEqual;": "\u224F",
|
| 765 |
+
"hybull;": "\u2043",
|
| 766 |
+
"hyphen;": "\u2010",
|
| 767 |
+
"Iacute;": "\u00CD",
|
| 768 |
+
"Iacute": "\u00CD",
|
| 769 |
+
"iacute;": "\u00ED",
|
| 770 |
+
"iacute": "\u00ED",
|
| 771 |
+
"ic;": "\u2063",
|
| 772 |
+
"Icirc;": "\u00CE",
|
| 773 |
+
"Icirc": "\u00CE",
|
| 774 |
+
"icirc;": "\u00EE",
|
| 775 |
+
"icirc": "\u00EE",
|
| 776 |
+
"Icy;": "\u0418",
|
| 777 |
+
"icy;": "\u0438",
|
| 778 |
+
"Idot;": "\u0130",
|
| 779 |
+
"IEcy;": "\u0415",
|
| 780 |
+
"iecy;": "\u0435",
|
| 781 |
+
"iexcl;": "\u00A1",
|
| 782 |
+
"iexcl": "\u00A1",
|
| 783 |
+
"iff;": "\u21D4",
|
| 784 |
+
"Ifr;": "\u2111",
|
| 785 |
+
"ifr;": "\uD835\uDD26",
|
| 786 |
+
"Igrave;": "\u00CC",
|
| 787 |
+
"Igrave": "\u00CC",
|
| 788 |
+
"igrave;": "\u00EC",
|
| 789 |
+
"igrave": "\u00EC",
|
| 790 |
+
"ii;": "\u2148",
|
| 791 |
+
"iiiint;": "\u2A0C",
|
| 792 |
+
"iiint;": "\u222D",
|
| 793 |
+
"iinfin;": "\u29DC",
|
| 794 |
+
"iiota;": "\u2129",
|
| 795 |
+
"IJlig;": "\u0132",
|
| 796 |
+
"ijlig;": "\u0133",
|
| 797 |
+
"Im;": "\u2111",
|
| 798 |
+
"Imacr;": "\u012A",
|
| 799 |
+
"imacr;": "\u012B",
|
| 800 |
+
"image;": "\u2111",
|
| 801 |
+
"ImaginaryI;": "\u2148",
|
| 802 |
+
"imagline;": "\u2110",
|
| 803 |
+
"imagpart;": "\u2111",
|
| 804 |
+
"imath;": "\u0131",
|
| 805 |
+
"imof;": "\u22B7",
|
| 806 |
+
"imped;": "\u01B5",
|
| 807 |
+
"Implies;": "\u21D2",
|
| 808 |
+
"in;": "\u2208",
|
| 809 |
+
"incare;": "\u2105",
|
| 810 |
+
"infin;": "\u221E",
|
| 811 |
+
"infintie;": "\u29DD",
|
| 812 |
+
"inodot;": "\u0131",
|
| 813 |
+
"Int;": "\u222C",
|
| 814 |
+
"int;": "\u222B",
|
| 815 |
+
"intcal;": "\u22BA",
|
| 816 |
+
"integers;": "\u2124",
|
| 817 |
+
"Integral;": "\u222B",
|
| 818 |
+
"intercal;": "\u22BA",
|
| 819 |
+
"Intersection;": "\u22C2",
|
| 820 |
+
"intlarhk;": "\u2A17",
|
| 821 |
+
"intprod;": "\u2A3C",
|
| 822 |
+
"InvisibleComma;": "\u2063",
|
| 823 |
+
"InvisibleTimes;": "\u2062",
|
| 824 |
+
"IOcy;": "\u0401",
|
| 825 |
+
"iocy;": "\u0451",
|
| 826 |
+
"Iogon;": "\u012E",
|
| 827 |
+
"iogon;": "\u012F",
|
| 828 |
+
"Iopf;": "\uD835\uDD40",
|
| 829 |
+
"iopf;": "\uD835\uDD5A",
|
| 830 |
+
"Iota;": "\u0399",
|
| 831 |
+
"iota;": "\u03B9",
|
| 832 |
+
"iprod;": "\u2A3C",
|
| 833 |
+
"iquest;": "\u00BF",
|
| 834 |
+
"iquest": "\u00BF",
|
| 835 |
+
"Iscr;": "\u2110",
|
| 836 |
+
"iscr;": "\uD835\uDCBE",
|
| 837 |
+
"isin;": "\u2208",
|
| 838 |
+
"isindot;": "\u22F5",
|
| 839 |
+
"isinE;": "\u22F9",
|
| 840 |
+
"isins;": "\u22F4",
|
| 841 |
+
"isinsv;": "\u22F3",
|
| 842 |
+
"isinv;": "\u2208",
|
| 843 |
+
"it;": "\u2062",
|
| 844 |
+
"Itilde;": "\u0128",
|
| 845 |
+
"itilde;": "\u0129",
|
| 846 |
+
"Iukcy;": "\u0406",
|
| 847 |
+
"iukcy;": "\u0456",
|
| 848 |
+
"Iuml;": "\u00CF",
|
| 849 |
+
"Iuml": "\u00CF",
|
| 850 |
+
"iuml;": "\u00EF",
|
| 851 |
+
"iuml": "\u00EF",
|
| 852 |
+
"Jcirc;": "\u0134",
|
| 853 |
+
"jcirc;": "\u0135",
|
| 854 |
+
"Jcy;": "\u0419",
|
| 855 |
+
"jcy;": "\u0439",
|
| 856 |
+
"Jfr;": "\uD835\uDD0D",
|
| 857 |
+
"jfr;": "\uD835\uDD27",
|
| 858 |
+
"jmath;": "\u0237",
|
| 859 |
+
"Jopf;": "\uD835\uDD41",
|
| 860 |
+
"jopf;": "\uD835\uDD5B",
|
| 861 |
+
"Jscr;": "\uD835\uDCA5",
|
| 862 |
+
"jscr;": "\uD835\uDCBF",
|
| 863 |
+
"Jsercy;": "\u0408",
|
| 864 |
+
"jsercy;": "\u0458",
|
| 865 |
+
"Jukcy;": "\u0404",
|
| 866 |
+
"jukcy;": "\u0454",
|
| 867 |
+
"Kappa;": "\u039A",
|
| 868 |
+
"kappa;": "\u03BA",
|
| 869 |
+
"kappav;": "\u03F0",
|
| 870 |
+
"Kcedil;": "\u0136",
|
| 871 |
+
"kcedil;": "\u0137",
|
| 872 |
+
"Kcy;": "\u041A",
|
| 873 |
+
"kcy;": "\u043A",
|
| 874 |
+
"Kfr;": "\uD835\uDD0E",
|
| 875 |
+
"kfr;": "\uD835\uDD28",
|
| 876 |
+
"kgreen;": "\u0138",
|
| 877 |
+
"KHcy;": "\u0425",
|
| 878 |
+
"khcy;": "\u0445",
|
| 879 |
+
"KJcy;": "\u040C",
|
| 880 |
+
"kjcy;": "\u045C",
|
| 881 |
+
"Kopf;": "\uD835\uDD42",
|
| 882 |
+
"kopf;": "\uD835\uDD5C",
|
| 883 |
+
"Kscr;": "\uD835\uDCA6",
|
| 884 |
+
"kscr;": "\uD835\uDCC0",
|
| 885 |
+
"lAarr;": "\u21DA",
|
| 886 |
+
"Lacute;": "\u0139",
|
| 887 |
+
"lacute;": "\u013A",
|
| 888 |
+
"laemptyv;": "\u29B4",
|
| 889 |
+
"lagran;": "\u2112",
|
| 890 |
+
"Lambda;": "\u039B",
|
| 891 |
+
"lambda;": "\u03BB",
|
| 892 |
+
"Lang;": "\u27EA",
|
| 893 |
+
"lang;": "\u27E8",
|
| 894 |
+
"langd;": "\u2991",
|
| 895 |
+
"langle;": "\u27E8",
|
| 896 |
+
"lap;": "\u2A85",
|
| 897 |
+
"Laplacetrf;": "\u2112",
|
| 898 |
+
"laquo;": "\u00AB",
|
| 899 |
+
"laquo": "\u00AB",
|
| 900 |
+
"Larr;": "\u219E",
|
| 901 |
+
"lArr;": "\u21D0",
|
| 902 |
+
"larr;": "\u2190",
|
| 903 |
+
"larrb;": "\u21E4",
|
| 904 |
+
"larrbfs;": "\u291F",
|
| 905 |
+
"larrfs;": "\u291D",
|
| 906 |
+
"larrhk;": "\u21A9",
|
| 907 |
+
"larrlp;": "\u21AB",
|
| 908 |
+
"larrpl;": "\u2939",
|
| 909 |
+
"larrsim;": "\u2973",
|
| 910 |
+
"larrtl;": "\u21A2",
|
| 911 |
+
"lat;": "\u2AAB",
|
| 912 |
+
"lAtail;": "\u291B",
|
| 913 |
+
"latail;": "\u2919",
|
| 914 |
+
"late;": "\u2AAD",
|
| 915 |
+
"lates;": "\u2AAD\uFE00",
|
| 916 |
+
"lBarr;": "\u290E",
|
| 917 |
+
"lbarr;": "\u290C",
|
| 918 |
+
"lbbrk;": "\u2772",
|
| 919 |
+
"lbrace;": "\u007B",
|
| 920 |
+
"lbrack;": "\u005B",
|
| 921 |
+
"lbrke;": "\u298B",
|
| 922 |
+
"lbrksld;": "\u298F",
|
| 923 |
+
"lbrkslu;": "\u298D",
|
| 924 |
+
"Lcaron;": "\u013D",
|
| 925 |
+
"lcaron;": "\u013E",
|
| 926 |
+
"Lcedil;": "\u013B",
|
| 927 |
+
"lcedil;": "\u013C",
|
| 928 |
+
"lceil;": "\u2308",
|
| 929 |
+
"lcub;": "\u007B",
|
| 930 |
+
"Lcy;": "\u041B",
|
| 931 |
+
"lcy;": "\u043B",
|
| 932 |
+
"ldca;": "\u2936",
|
| 933 |
+
"ldquo;": "\u201C",
|
| 934 |
+
"ldquor;": "\u201E",
|
| 935 |
+
"ldrdhar;": "\u2967",
|
| 936 |
+
"ldrushar;": "\u294B",
|
| 937 |
+
"ldsh;": "\u21B2",
|
| 938 |
+
"lE;": "\u2266",
|
| 939 |
+
"le;": "\u2264",
|
| 940 |
+
"LeftAngleBracket;": "\u27E8",
|
| 941 |
+
"LeftArrow;": "\u2190",
|
| 942 |
+
"Leftarrow;": "\u21D0",
|
| 943 |
+
"leftarrow;": "\u2190",
|
| 944 |
+
"LeftArrowBar;": "\u21E4",
|
| 945 |
+
"LeftArrowRightArrow;": "\u21C6",
|
| 946 |
+
"leftarrowtail;": "\u21A2",
|
| 947 |
+
"LeftCeiling;": "\u2308",
|
| 948 |
+
"LeftDoubleBracket;": "\u27E6",
|
| 949 |
+
"LeftDownTeeVector;": "\u2961",
|
| 950 |
+
"LeftDownVector;": "\u21C3",
|
| 951 |
+
"LeftDownVectorBar;": "\u2959",
|
| 952 |
+
"LeftFloor;": "\u230A",
|
| 953 |
+
"leftharpoondown;": "\u21BD",
|
| 954 |
+
"leftharpoonup;": "\u21BC",
|
| 955 |
+
"leftleftarrows;": "\u21C7",
|
| 956 |
+
"LeftRightArrow;": "\u2194",
|
| 957 |
+
"Leftrightarrow;": "\u21D4",
|
| 958 |
+
"leftrightarrow;": "\u2194",
|
| 959 |
+
"leftrightarrows;": "\u21C6",
|
| 960 |
+
"leftrightharpoons;": "\u21CB",
|
| 961 |
+
"leftrightsquigarrow;": "\u21AD",
|
| 962 |
+
"LeftRightVector;": "\u294E",
|
| 963 |
+
"LeftTee;": "\u22A3",
|
| 964 |
+
"LeftTeeArrow;": "\u21A4",
|
| 965 |
+
"LeftTeeVector;": "\u295A",
|
| 966 |
+
"leftthreetimes;": "\u22CB",
|
| 967 |
+
"LeftTriangle;": "\u22B2",
|
| 968 |
+
"LeftTriangleBar;": "\u29CF",
|
| 969 |
+
"LeftTriangleEqual;": "\u22B4",
|
| 970 |
+
"LeftUpDownVector;": "\u2951",
|
| 971 |
+
"LeftUpTeeVector;": "\u2960",
|
| 972 |
+
"LeftUpVector;": "\u21BF",
|
| 973 |
+
"LeftUpVectorBar;": "\u2958",
|
| 974 |
+
"LeftVector;": "\u21BC",
|
| 975 |
+
"LeftVectorBar;": "\u2952",
|
| 976 |
+
"lEg;": "\u2A8B",
|
| 977 |
+
"leg;": "\u22DA",
|
| 978 |
+
"leq;": "\u2264",
|
| 979 |
+
"leqq;": "\u2266",
|
| 980 |
+
"leqslant;": "\u2A7D",
|
| 981 |
+
"les;": "\u2A7D",
|
| 982 |
+
"lescc;": "\u2AA8",
|
| 983 |
+
"lesdot;": "\u2A7F",
|
| 984 |
+
"lesdoto;": "\u2A81",
|
| 985 |
+
"lesdotor;": "\u2A83",
|
| 986 |
+
"lesg;": "\u22DA\uFE00",
|
| 987 |
+
"lesges;": "\u2A93",
|
| 988 |
+
"lessapprox;": "\u2A85",
|
| 989 |
+
"lessdot;": "\u22D6",
|
| 990 |
+
"lesseqgtr;": "\u22DA",
|
| 991 |
+
"lesseqqgtr;": "\u2A8B",
|
| 992 |
+
"LessEqualGreater;": "\u22DA",
|
| 993 |
+
"LessFullEqual;": "\u2266",
|
| 994 |
+
"LessGreater;": "\u2276",
|
| 995 |
+
"lessgtr;": "\u2276",
|
| 996 |
+
"LessLess;": "\u2AA1",
|
| 997 |
+
"lesssim;": "\u2272",
|
| 998 |
+
"LessSlantEqual;": "\u2A7D",
|
| 999 |
+
"LessTilde;": "\u2272",
|
| 1000 |
+
"lfisht;": "\u297C",
|
| 1001 |
+
"lfloor;": "\u230A",
|
| 1002 |
+
"Lfr;": "\uD835\uDD0F",
|
| 1003 |
+
"lfr;": "\uD835\uDD29",
|
| 1004 |
+
"lg;": "\u2276",
|
| 1005 |
+
"lgE;": "\u2A91",
|
| 1006 |
+
"lHar;": "\u2962",
|
| 1007 |
+
"lhard;": "\u21BD",
|
| 1008 |
+
"lharu;": "\u21BC",
|
| 1009 |
+
"lharul;": "\u296A",
|
| 1010 |
+
"lhblk;": "\u2584",
|
| 1011 |
+
"LJcy;": "\u0409",
|
| 1012 |
+
"ljcy;": "\u0459",
|
| 1013 |
+
"Ll;": "\u22D8",
|
| 1014 |
+
"ll;": "\u226A",
|
| 1015 |
+
"llarr;": "\u21C7",
|
| 1016 |
+
"llcorner;": "\u231E",
|
| 1017 |
+
"Lleftarrow;": "\u21DA",
|
| 1018 |
+
"llhard;": "\u296B",
|
| 1019 |
+
"lltri;": "\u25FA",
|
| 1020 |
+
"Lmidot;": "\u013F",
|
| 1021 |
+
"lmidot;": "\u0140",
|
| 1022 |
+
"lmoust;": "\u23B0",
|
| 1023 |
+
"lmoustache;": "\u23B0",
|
| 1024 |
+
"lnap;": "\u2A89",
|
| 1025 |
+
"lnapprox;": "\u2A89",
|
| 1026 |
+
"lnE;": "\u2268",
|
| 1027 |
+
"lne;": "\u2A87",
|
| 1028 |
+
"lneq;": "\u2A87",
|
| 1029 |
+
"lneqq;": "\u2268",
|
| 1030 |
+
"lnsim;": "\u22E6",
|
| 1031 |
+
"loang;": "\u27EC",
|
| 1032 |
+
"loarr;": "\u21FD",
|
| 1033 |
+
"lobrk;": "\u27E6",
|
| 1034 |
+
"LongLeftArrow;": "\u27F5",
|
| 1035 |
+
"Longleftarrow;": "\u27F8",
|
| 1036 |
+
"longleftarrow;": "\u27F5",
|
| 1037 |
+
"LongLeftRightArrow;": "\u27F7",
|
| 1038 |
+
"Longleftrightarrow;": "\u27FA",
|
| 1039 |
+
"longleftrightarrow;": "\u27F7",
|
| 1040 |
+
"longmapsto;": "\u27FC",
|
| 1041 |
+
"LongRightArrow;": "\u27F6",
|
| 1042 |
+
"Longrightarrow;": "\u27F9",
|
| 1043 |
+
"longrightarrow;": "\u27F6",
|
| 1044 |
+
"looparrowleft;": "\u21AB",
|
| 1045 |
+
"looparrowright;": "\u21AC",
|
| 1046 |
+
"lopar;": "\u2985",
|
| 1047 |
+
"Lopf;": "\uD835\uDD43",
|
| 1048 |
+
"lopf;": "\uD835\uDD5D",
|
| 1049 |
+
"loplus;": "\u2A2D",
|
| 1050 |
+
"lotimes;": "\u2A34",
|
| 1051 |
+
"lowast;": "\u2217",
|
| 1052 |
+
"lowbar;": "\u005F",
|
| 1053 |
+
"LowerLeftArrow;": "\u2199",
|
| 1054 |
+
"LowerRightArrow;": "\u2198",
|
| 1055 |
+
"loz;": "\u25CA",
|
| 1056 |
+
"lozenge;": "\u25CA",
|
| 1057 |
+
"lozf;": "\u29EB",
|
| 1058 |
+
"lpar;": "\u0028",
|
| 1059 |
+
"lparlt;": "\u2993",
|
| 1060 |
+
"lrarr;": "\u21C6",
|
| 1061 |
+
"lrcorner;": "\u231F",
|
| 1062 |
+
"lrhar;": "\u21CB",
|
| 1063 |
+
"lrhard;": "\u296D",
|
| 1064 |
+
"lrm;": "\u200E",
|
| 1065 |
+
"lrtri;": "\u22BF",
|
| 1066 |
+
"lsaquo;": "\u2039",
|
| 1067 |
+
"Lscr;": "\u2112",
|
| 1068 |
+
"lscr;": "\uD835\uDCC1",
|
| 1069 |
+
"Lsh;": "\u21B0",
|
| 1070 |
+
"lsh;": "\u21B0",
|
| 1071 |
+
"lsim;": "\u2272",
|
| 1072 |
+
"lsime;": "\u2A8D",
|
| 1073 |
+
"lsimg;": "\u2A8F",
|
| 1074 |
+
"lsqb;": "\u005B",
|
| 1075 |
+
"lsquo;": "\u2018",
|
| 1076 |
+
"lsquor;": "\u201A",
|
| 1077 |
+
"Lstrok;": "\u0141",
|
| 1078 |
+
"lstrok;": "\u0142",
|
| 1079 |
+
"LT;": "\u003C",
|
| 1080 |
+
"LT": "\u003C",
|
| 1081 |
+
"Lt;": "\u226A",
|
| 1082 |
+
"lt;": "\u003C",
|
| 1083 |
+
"lt": "\u003C",
|
| 1084 |
+
"ltcc;": "\u2AA6",
|
| 1085 |
+
"ltcir;": "\u2A79",
|
| 1086 |
+
"ltdot;": "\u22D6",
|
| 1087 |
+
"lthree;": "\u22CB",
|
| 1088 |
+
"ltimes;": "\u22C9",
|
| 1089 |
+
"ltlarr;": "\u2976",
|
| 1090 |
+
"ltquest;": "\u2A7B",
|
| 1091 |
+
"ltri;": "\u25C3",
|
| 1092 |
+
"ltrie;": "\u22B4",
|
| 1093 |
+
"ltrif;": "\u25C2",
|
| 1094 |
+
"ltrPar;": "\u2996",
|
| 1095 |
+
"lurdshar;": "\u294A",
|
| 1096 |
+
"luruhar;": "\u2966",
|
| 1097 |
+
"lvertneqq;": "\u2268\uFE00",
|
| 1098 |
+
"lvnE;": "\u2268\uFE00",
|
| 1099 |
+
"macr;": "\u00AF",
|
| 1100 |
+
"macr": "\u00AF",
|
| 1101 |
+
"male;": "\u2642",
|
| 1102 |
+
"malt;": "\u2720",
|
| 1103 |
+
"maltese;": "\u2720",
|
| 1104 |
+
"Map;": "\u2905",
|
| 1105 |
+
"map;": "\u21A6",
|
| 1106 |
+
"mapsto;": "\u21A6",
|
| 1107 |
+
"mapstodown;": "\u21A7",
|
| 1108 |
+
"mapstoleft;": "\u21A4",
|
| 1109 |
+
"mapstoup;": "\u21A5",
|
| 1110 |
+
"marker;": "\u25AE",
|
| 1111 |
+
"mcomma;": "\u2A29",
|
| 1112 |
+
"Mcy;": "\u041C",
|
| 1113 |
+
"mcy;": "\u043C",
|
| 1114 |
+
"mdash;": "\u2014",
|
| 1115 |
+
"mDDot;": "\u223A",
|
| 1116 |
+
"measuredangle;": "\u2221",
|
| 1117 |
+
"MediumSpace;": "\u205F",
|
| 1118 |
+
"Mellintrf;": "\u2133",
|
| 1119 |
+
"Mfr;": "\uD835\uDD10",
|
| 1120 |
+
"mfr;": "\uD835\uDD2A",
|
| 1121 |
+
"mho;": "\u2127",
|
| 1122 |
+
"micro;": "\u00B5",
|
| 1123 |
+
"micro": "\u00B5",
|
| 1124 |
+
"mid;": "\u2223",
|
| 1125 |
+
"midast;": "\u002A",
|
| 1126 |
+
"midcir;": "\u2AF0",
|
| 1127 |
+
"middot;": "\u00B7",
|
| 1128 |
+
"middot": "\u00B7",
|
| 1129 |
+
"minus;": "\u2212",
|
| 1130 |
+
"minusb;": "\u229F",
|
| 1131 |
+
"minusd;": "\u2238",
|
| 1132 |
+
"minusdu;": "\u2A2A",
|
| 1133 |
+
"MinusPlus;": "\u2213",
|
| 1134 |
+
"mlcp;": "\u2ADB",
|
| 1135 |
+
"mldr;": "\u2026",
|
| 1136 |
+
"mnplus;": "\u2213",
|
| 1137 |
+
"models;": "\u22A7",
|
| 1138 |
+
"Mopf;": "\uD835\uDD44",
|
| 1139 |
+
"mopf;": "\uD835\uDD5E",
|
| 1140 |
+
"mp;": "\u2213",
|
| 1141 |
+
"Mscr;": "\u2133",
|
| 1142 |
+
"mscr;": "\uD835\uDCC2",
|
| 1143 |
+
"mstpos;": "\u223E",
|
| 1144 |
+
"Mu;": "\u039C",
|
| 1145 |
+
"mu;": "\u03BC",
|
| 1146 |
+
"multimap;": "\u22B8",
|
| 1147 |
+
"mumap;": "\u22B8",
|
| 1148 |
+
"nabla;": "\u2207",
|
| 1149 |
+
"Nacute;": "\u0143",
|
| 1150 |
+
"nacute;": "\u0144",
|
| 1151 |
+
"nang;": "\u2220\u20D2",
|
| 1152 |
+
"nap;": "\u2249",
|
| 1153 |
+
"napE;": "\u2A70\u0338",
|
| 1154 |
+
"napid;": "\u224B\u0338",
|
| 1155 |
+
"napos;": "\u0149",
|
| 1156 |
+
"napprox;": "\u2249",
|
| 1157 |
+
"natur;": "\u266E",
|
| 1158 |
+
"natural;": "\u266E",
|
| 1159 |
+
"naturals;": "\u2115",
|
| 1160 |
+
"nbsp;": "\u00A0",
|
| 1161 |
+
"nbsp": "\u00A0",
|
| 1162 |
+
"nbump;": "\u224E\u0338",
|
| 1163 |
+
"nbumpe;": "\u224F\u0338",
|
| 1164 |
+
"ncap;": "\u2A43",
|
| 1165 |
+
"Ncaron;": "\u0147",
|
| 1166 |
+
"ncaron;": "\u0148",
|
| 1167 |
+
"Ncedil;": "\u0145",
|
| 1168 |
+
"ncedil;": "\u0146",
|
| 1169 |
+
"ncong;": "\u2247",
|
| 1170 |
+
"ncongdot;": "\u2A6D\u0338",
|
| 1171 |
+
"ncup;": "\u2A42",
|
| 1172 |
+
"Ncy;": "\u041D",
|
| 1173 |
+
"ncy;": "\u043D",
|
| 1174 |
+
"ndash;": "\u2013",
|
| 1175 |
+
"ne;": "\u2260",
|
| 1176 |
+
"nearhk;": "\u2924",
|
| 1177 |
+
"neArr;": "\u21D7",
|
| 1178 |
+
"nearr;": "\u2197",
|
| 1179 |
+
"nearrow;": "\u2197",
|
| 1180 |
+
"nedot;": "\u2250\u0338",
|
| 1181 |
+
"NegativeMediumSpace;": "\u200B",
|
| 1182 |
+
"NegativeThickSpace;": "\u200B",
|
| 1183 |
+
"NegativeThinSpace;": "\u200B",
|
| 1184 |
+
"NegativeVeryThinSpace;": "\u200B",
|
| 1185 |
+
"nequiv;": "\u2262",
|
| 1186 |
+
"nesear;": "\u2928",
|
| 1187 |
+
"nesim;": "\u2242\u0338",
|
| 1188 |
+
"NestedGreaterGreater;": "\u226B",
|
| 1189 |
+
"NestedLessLess;": "\u226A",
|
| 1190 |
+
"NewLine;": "\u000A",
|
| 1191 |
+
"nexist;": "\u2204",
|
| 1192 |
+
"nexists;": "\u2204",
|
| 1193 |
+
"Nfr;": "\uD835\uDD11",
|
| 1194 |
+
"nfr;": "\uD835\uDD2B",
|
| 1195 |
+
"ngE;": "\u2267\u0338",
|
| 1196 |
+
"nge;": "\u2271",
|
| 1197 |
+
"ngeq;": "\u2271",
|
| 1198 |
+
"ngeqq;": "\u2267\u0338",
|
| 1199 |
+
"ngeqslant;": "\u2A7E\u0338",
|
| 1200 |
+
"nges;": "\u2A7E\u0338",
|
| 1201 |
+
"nGg;": "\u22D9\u0338",
|
| 1202 |
+
"ngsim;": "\u2275",
|
| 1203 |
+
"nGt;": "\u226B\u20D2",
|
| 1204 |
+
"ngt;": "\u226F",
|
| 1205 |
+
"ngtr;": "\u226F",
|
| 1206 |
+
"nGtv;": "\u226B\u0338",
|
| 1207 |
+
"nhArr;": "\u21CE",
|
| 1208 |
+
"nharr;": "\u21AE",
|
| 1209 |
+
"nhpar;": "\u2AF2",
|
| 1210 |
+
"ni;": "\u220B",
|
| 1211 |
+
"nis;": "\u22FC",
|
| 1212 |
+
"nisd;": "\u22FA",
|
| 1213 |
+
"niv;": "\u220B",
|
| 1214 |
+
"NJcy;": "\u040A",
|
| 1215 |
+
"njcy;": "\u045A",
|
| 1216 |
+
"nlArr;": "\u21CD",
|
| 1217 |
+
"nlarr;": "\u219A",
|
| 1218 |
+
"nldr;": "\u2025",
|
| 1219 |
+
"nlE;": "\u2266\u0338",
|
| 1220 |
+
"nle;": "\u2270",
|
| 1221 |
+
"nLeftarrow;": "\u21CD",
|
| 1222 |
+
"nleftarrow;": "\u219A",
|
| 1223 |
+
"nLeftrightarrow;": "\u21CE",
|
| 1224 |
+
"nleftrightarrow;": "\u21AE",
|
| 1225 |
+
"nleq;": "\u2270",
|
| 1226 |
+
"nleqq;": "\u2266\u0338",
|
| 1227 |
+
"nleqslant;": "\u2A7D\u0338",
|
| 1228 |
+
"nles;": "\u2A7D\u0338",
|
| 1229 |
+
"nless;": "\u226E",
|
| 1230 |
+
"nLl;": "\u22D8\u0338",
|
| 1231 |
+
"nlsim;": "\u2274",
|
| 1232 |
+
"nLt;": "\u226A\u20D2",
|
| 1233 |
+
"nlt;": "\u226E",
|
| 1234 |
+
"nltri;": "\u22EA",
|
| 1235 |
+
"nltrie;": "\u22EC",
|
| 1236 |
+
"nLtv;": "\u226A\u0338",
|
| 1237 |
+
"nmid;": "\u2224",
|
| 1238 |
+
"NoBreak;": "\u2060",
|
| 1239 |
+
"NonBreakingSpace;": "\u00A0",
|
| 1240 |
+
"Nopf;": "\u2115",
|
| 1241 |
+
"nopf;": "\uD835\uDD5F",
|
| 1242 |
+
"Not;": "\u2AEC",
|
| 1243 |
+
"not;": "\u00AC",
|
| 1244 |
+
"not": "\u00AC",
|
| 1245 |
+
"NotCongruent;": "\u2262",
|
| 1246 |
+
"NotCupCap;": "\u226D",
|
| 1247 |
+
"NotDoubleVerticalBar;": "\u2226",
|
| 1248 |
+
"NotElement;": "\u2209",
|
| 1249 |
+
"NotEqual;": "\u2260",
|
| 1250 |
+
"NotEqualTilde;": "\u2242\u0338",
|
| 1251 |
+
"NotExists;": "\u2204",
|
| 1252 |
+
"NotGreater;": "\u226F",
|
| 1253 |
+
"NotGreaterEqual;": "\u2271",
|
| 1254 |
+
"NotGreaterFullEqual;": "\u2267\u0338",
|
| 1255 |
+
"NotGreaterGreater;": "\u226B\u0338",
|
| 1256 |
+
"NotGreaterLess;": "\u2279",
|
| 1257 |
+
"NotGreaterSlantEqual;": "\u2A7E\u0338",
|
| 1258 |
+
"NotGreaterTilde;": "\u2275",
|
| 1259 |
+
"NotHumpDownHump;": "\u224E\u0338",
|
| 1260 |
+
"NotHumpEqual;": "\u224F\u0338",
|
| 1261 |
+
"notin;": "\u2209",
|
| 1262 |
+
"notindot;": "\u22F5\u0338",
|
| 1263 |
+
"notinE;": "\u22F9\u0338",
|
| 1264 |
+
"notinva;": "\u2209",
|
| 1265 |
+
"notinvb;": "\u22F7",
|
| 1266 |
+
"notinvc;": "\u22F6",
|
| 1267 |
+
"NotLeftTriangle;": "\u22EA",
|
| 1268 |
+
"NotLeftTriangleBar;": "\u29CF\u0338",
|
| 1269 |
+
"NotLeftTriangleEqual;": "\u22EC",
|
| 1270 |
+
"NotLess;": "\u226E",
|
| 1271 |
+
"NotLessEqual;": "\u2270",
|
| 1272 |
+
"NotLessGreater;": "\u2278",
|
| 1273 |
+
"NotLessLess;": "\u226A\u0338",
|
| 1274 |
+
"NotLessSlantEqual;": "\u2A7D\u0338",
|
| 1275 |
+
"NotLessTilde;": "\u2274",
|
| 1276 |
+
"NotNestedGreaterGreater;": "\u2AA2\u0338",
|
| 1277 |
+
"NotNestedLessLess;": "\u2AA1\u0338",
|
| 1278 |
+
"notni;": "\u220C",
|
| 1279 |
+
"notniva;": "\u220C",
|
| 1280 |
+
"notnivb;": "\u22FE",
|
| 1281 |
+
"notnivc;": "\u22FD",
|
| 1282 |
+
"NotPrecedes;": "\u2280",
|
| 1283 |
+
"NotPrecedesEqual;": "\u2AAF\u0338",
|
| 1284 |
+
"NotPrecedesSlantEqual;": "\u22E0",
|
| 1285 |
+
"NotReverseElement;": "\u220C",
|
| 1286 |
+
"NotRightTriangle;": "\u22EB",
|
| 1287 |
+
"NotRightTriangleBar;": "\u29D0\u0338",
|
| 1288 |
+
"NotRightTriangleEqual;": "\u22ED",
|
| 1289 |
+
"NotSquareSubset;": "\u228F\u0338",
|
| 1290 |
+
"NotSquareSubsetEqual;": "\u22E2",
|
| 1291 |
+
"NotSquareSuperset;": "\u2290\u0338",
|
| 1292 |
+
"NotSquareSupersetEqual;": "\u22E3",
|
| 1293 |
+
"NotSubset;": "\u2282\u20D2",
|
| 1294 |
+
"NotSubsetEqual;": "\u2288",
|
| 1295 |
+
"NotSucceeds;": "\u2281",
|
| 1296 |
+
"NotSucceedsEqual;": "\u2AB0\u0338",
|
| 1297 |
+
"NotSucceedsSlantEqual;": "\u22E1",
|
| 1298 |
+
"NotSucceedsTilde;": "\u227F\u0338",
|
| 1299 |
+
"NotSuperset;": "\u2283\u20D2",
|
| 1300 |
+
"NotSupersetEqual;": "\u2289",
|
| 1301 |
+
"NotTilde;": "\u2241",
|
| 1302 |
+
"NotTildeEqual;": "\u2244",
|
| 1303 |
+
"NotTildeFullEqual;": "\u2247",
|
| 1304 |
+
"NotTildeTilde;": "\u2249",
|
| 1305 |
+
"NotVerticalBar;": "\u2224",
|
| 1306 |
+
"npar;": "\u2226",
|
| 1307 |
+
"nparallel;": "\u2226",
|
| 1308 |
+
"nparsl;": "\u2AFD\u20E5",
|
| 1309 |
+
"npart;": "\u2202\u0338",
|
| 1310 |
+
"npolint;": "\u2A14",
|
| 1311 |
+
"npr;": "\u2280",
|
| 1312 |
+
"nprcue;": "\u22E0",
|
| 1313 |
+
"npre;": "\u2AAF\u0338",
|
| 1314 |
+
"nprec;": "\u2280",
|
| 1315 |
+
"npreceq;": "\u2AAF\u0338",
|
| 1316 |
+
"nrArr;": "\u21CF",
|
| 1317 |
+
"nrarr;": "\u219B",
|
| 1318 |
+
"nrarrc;": "\u2933\u0338",
|
| 1319 |
+
"nrarrw;": "\u219D\u0338",
|
| 1320 |
+
"nRightarrow;": "\u21CF",
|
| 1321 |
+
"nrightarrow;": "\u219B",
|
| 1322 |
+
"nrtri;": "\u22EB",
|
| 1323 |
+
"nrtrie;": "\u22ED",
|
| 1324 |
+
"nsc;": "\u2281",
|
| 1325 |
+
"nsccue;": "\u22E1",
|
| 1326 |
+
"nsce;": "\u2AB0\u0338",
|
| 1327 |
+
"Nscr;": "\uD835\uDCA9",
|
| 1328 |
+
"nscr;": "\uD835\uDCC3",
|
| 1329 |
+
"nshortmid;": "\u2224",
|
| 1330 |
+
"nshortparallel;": "\u2226",
|
| 1331 |
+
"nsim;": "\u2241",
|
| 1332 |
+
"nsime;": "\u2244",
|
| 1333 |
+
"nsimeq;": "\u2244",
|
| 1334 |
+
"nsmid;": "\u2224",
|
| 1335 |
+
"nspar;": "\u2226",
|
| 1336 |
+
"nsqsube;": "\u22E2",
|
| 1337 |
+
"nsqsupe;": "\u22E3",
|
| 1338 |
+
"nsub;": "\u2284",
|
| 1339 |
+
"nsubE;": "\u2AC5\u0338",
|
| 1340 |
+
"nsube;": "\u2288",
|
| 1341 |
+
"nsubset;": "\u2282\u20D2",
|
| 1342 |
+
"nsubseteq;": "\u2288",
|
| 1343 |
+
"nsubseteqq;": "\u2AC5\u0338",
|
| 1344 |
+
"nsucc;": "\u2281",
|
| 1345 |
+
"nsucceq;": "\u2AB0\u0338",
|
| 1346 |
+
"nsup;": "\u2285",
|
| 1347 |
+
"nsupE;": "\u2AC6\u0338",
|
| 1348 |
+
"nsupe;": "\u2289",
|
| 1349 |
+
"nsupset;": "\u2283\u20D2",
|
| 1350 |
+
"nsupseteq;": "\u2289",
|
| 1351 |
+
"nsupseteqq;": "\u2AC6\u0338",
|
| 1352 |
+
"ntgl;": "\u2279",
|
| 1353 |
+
"Ntilde;": "\u00D1",
|
| 1354 |
+
"Ntilde": "\u00D1",
|
| 1355 |
+
"ntilde;": "\u00F1",
|
| 1356 |
+
"ntilde": "\u00F1",
|
| 1357 |
+
"ntlg;": "\u2278",
|
| 1358 |
+
"ntriangleleft;": "\u22EA",
|
| 1359 |
+
"ntrianglelefteq;": "\u22EC",
|
| 1360 |
+
"ntriangleright;": "\u22EB",
|
| 1361 |
+
"ntrianglerighteq;": "\u22ED",
|
| 1362 |
+
"Nu;": "\u039D",
|
| 1363 |
+
"nu;": "\u03BD",
|
| 1364 |
+
"num;": "\u0023",
|
| 1365 |
+
"numero;": "\u2116",
|
| 1366 |
+
"numsp;": "\u2007",
|
| 1367 |
+
"nvap;": "\u224D\u20D2",
|
| 1368 |
+
"nVDash;": "\u22AF",
|
| 1369 |
+
"nVdash;": "\u22AE",
|
| 1370 |
+
"nvDash;": "\u22AD",
|
| 1371 |
+
"nvdash;": "\u22AC",
|
| 1372 |
+
"nvge;": "\u2265\u20D2",
|
| 1373 |
+
"nvgt;": "\u003E\u20D2",
|
| 1374 |
+
"nvHarr;": "\u2904",
|
| 1375 |
+
"nvinfin;": "\u29DE",
|
| 1376 |
+
"nvlArr;": "\u2902",
|
| 1377 |
+
"nvle;": "\u2264\u20D2",
|
| 1378 |
+
"nvlt;": "\u003C\u20D2",
|
| 1379 |
+
"nvltrie;": "\u22B4\u20D2",
|
| 1380 |
+
"nvrArr;": "\u2903",
|
| 1381 |
+
"nvrtrie;": "\u22B5\u20D2",
|
| 1382 |
+
"nvsim;": "\u223C\u20D2",
|
| 1383 |
+
"nwarhk;": "\u2923",
|
| 1384 |
+
"nwArr;": "\u21D6",
|
| 1385 |
+
"nwarr;": "\u2196",
|
| 1386 |
+
"nwarrow;": "\u2196",
|
| 1387 |
+
"nwnear;": "\u2927",
|
| 1388 |
+
"Oacute;": "\u00D3",
|
| 1389 |
+
"Oacute": "\u00D3",
|
| 1390 |
+
"oacute;": "\u00F3",
|
| 1391 |
+
"oacute": "\u00F3",
|
| 1392 |
+
"oast;": "\u229B",
|
| 1393 |
+
"ocir;": "\u229A",
|
| 1394 |
+
"Ocirc;": "\u00D4",
|
| 1395 |
+
"Ocirc": "\u00D4",
|
| 1396 |
+
"ocirc;": "\u00F4",
|
| 1397 |
+
"ocirc": "\u00F4",
|
| 1398 |
+
"Ocy;": "\u041E",
|
| 1399 |
+
"ocy;": "\u043E",
|
| 1400 |
+
"odash;": "\u229D",
|
| 1401 |
+
"Odblac;": "\u0150",
|
| 1402 |
+
"odblac;": "\u0151",
|
| 1403 |
+
"odiv;": "\u2A38",
|
| 1404 |
+
"odot;": "\u2299",
|
| 1405 |
+
"odsold;": "\u29BC",
|
| 1406 |
+
"OElig;": "\u0152",
|
| 1407 |
+
"oelig;": "\u0153",
|
| 1408 |
+
"ofcir;": "\u29BF",
|
| 1409 |
+
"Ofr;": "\uD835\uDD12",
|
| 1410 |
+
"ofr;": "\uD835\uDD2C",
|
| 1411 |
+
"ogon;": "\u02DB",
|
| 1412 |
+
"Ograve;": "\u00D2",
|
| 1413 |
+
"Ograve": "\u00D2",
|
| 1414 |
+
"ograve;": "\u00F2",
|
| 1415 |
+
"ograve": "\u00F2",
|
| 1416 |
+
"ogt;": "\u29C1",
|
| 1417 |
+
"ohbar;": "\u29B5",
|
| 1418 |
+
"ohm;": "\u03A9",
|
| 1419 |
+
"oint;": "\u222E",
|
| 1420 |
+
"olarr;": "\u21BA",
|
| 1421 |
+
"olcir;": "\u29BE",
|
| 1422 |
+
"olcross;": "\u29BB",
|
| 1423 |
+
"oline;": "\u203E",
|
| 1424 |
+
"olt;": "\u29C0",
|
| 1425 |
+
"Omacr;": "\u014C",
|
| 1426 |
+
"omacr;": "\u014D",
|
| 1427 |
+
"Omega;": "\u03A9",
|
| 1428 |
+
"omega;": "\u03C9",
|
| 1429 |
+
"Omicron;": "\u039F",
|
| 1430 |
+
"omicron;": "\u03BF",
|
| 1431 |
+
"omid;": "\u29B6",
|
| 1432 |
+
"ominus;": "\u2296",
|
| 1433 |
+
"Oopf;": "\uD835\uDD46",
|
| 1434 |
+
"oopf;": "\uD835\uDD60",
|
| 1435 |
+
"opar;": "\u29B7",
|
| 1436 |
+
"OpenCurlyDoubleQuote;": "\u201C",
|
| 1437 |
+
"OpenCurlyQuote;": "\u2018",
|
| 1438 |
+
"operp;": "\u29B9",
|
| 1439 |
+
"oplus;": "\u2295",
|
| 1440 |
+
"Or;": "\u2A54",
|
| 1441 |
+
"or;": "\u2228",
|
| 1442 |
+
"orarr;": "\u21BB",
|
| 1443 |
+
"ord;": "\u2A5D",
|
| 1444 |
+
"order;": "\u2134",
|
| 1445 |
+
"orderof;": "\u2134",
|
| 1446 |
+
"ordf;": "\u00AA",
|
| 1447 |
+
"ordf": "\u00AA",
|
| 1448 |
+
"ordm;": "\u00BA",
|
| 1449 |
+
"ordm": "\u00BA",
|
| 1450 |
+
"origof;": "\u22B6",
|
| 1451 |
+
"oror;": "\u2A56",
|
| 1452 |
+
"orslope;": "\u2A57",
|
| 1453 |
+
"orv;": "\u2A5B",
|
| 1454 |
+
"oS;": "\u24C8",
|
| 1455 |
+
"Oscr;": "\uD835\uDCAA",
|
| 1456 |
+
"oscr;": "\u2134",
|
| 1457 |
+
"Oslash;": "\u00D8",
|
| 1458 |
+
"Oslash": "\u00D8",
|
| 1459 |
+
"oslash;": "\u00F8",
|
| 1460 |
+
"oslash": "\u00F8",
|
| 1461 |
+
"osol;": "\u2298",
|
| 1462 |
+
"Otilde;": "\u00D5",
|
| 1463 |
+
"Otilde": "\u00D5",
|
| 1464 |
+
"otilde;": "\u00F5",
|
| 1465 |
+
"otilde": "\u00F5",
|
| 1466 |
+
"Otimes;": "\u2A37",
|
| 1467 |
+
"otimes;": "\u2297",
|
| 1468 |
+
"otimesas;": "\u2A36",
|
| 1469 |
+
"Ouml;": "\u00D6",
|
| 1470 |
+
"Ouml": "\u00D6",
|
| 1471 |
+
"ouml;": "\u00F6",
|
| 1472 |
+
"ouml": "\u00F6",
|
| 1473 |
+
"ovbar;": "\u233D",
|
| 1474 |
+
"OverBar;": "\u203E",
|
| 1475 |
+
"OverBrace;": "\u23DE",
|
| 1476 |
+
"OverBracket;": "\u23B4",
|
| 1477 |
+
"OverParenthesis;": "\u23DC",
|
| 1478 |
+
"par;": "\u2225",
|
| 1479 |
+
"para;": "\u00B6",
|
| 1480 |
+
"para": "\u00B6",
|
| 1481 |
+
"parallel;": "\u2225",
|
| 1482 |
+
"parsim;": "\u2AF3",
|
| 1483 |
+
"parsl;": "\u2AFD",
|
| 1484 |
+
"part;": "\u2202",
|
| 1485 |
+
"PartialD;": "\u2202",
|
| 1486 |
+
"Pcy;": "\u041F",
|
| 1487 |
+
"pcy;": "\u043F",
|
| 1488 |
+
"percnt;": "\u0025",
|
| 1489 |
+
"period;": "\u002E",
|
| 1490 |
+
"permil;": "\u2030",
|
| 1491 |
+
"perp;": "\u22A5",
|
| 1492 |
+
"pertenk;": "\u2031",
|
| 1493 |
+
"Pfr;": "\uD835\uDD13",
|
| 1494 |
+
"pfr;": "\uD835\uDD2D",
|
| 1495 |
+
"Phi;": "\u03A6",
|
| 1496 |
+
"phi;": "\u03C6",
|
| 1497 |
+
"phiv;": "\u03D5",
|
| 1498 |
+
"phmmat;": "\u2133",
|
| 1499 |
+
"phone;": "\u260E",
|
| 1500 |
+
"Pi;": "\u03A0",
|
| 1501 |
+
"pi;": "\u03C0",
|
| 1502 |
+
"pitchfork;": "\u22D4",
|
| 1503 |
+
"piv;": "\u03D6",
|
| 1504 |
+
"planck;": "\u210F",
|
| 1505 |
+
"planckh;": "\u210E",
|
| 1506 |
+
"plankv;": "\u210F",
|
| 1507 |
+
"plus;": "\u002B",
|
| 1508 |
+
"plusacir;": "\u2A23",
|
| 1509 |
+
"plusb;": "\u229E",
|
| 1510 |
+
"pluscir;": "\u2A22",
|
| 1511 |
+
"plusdo;": "\u2214",
|
| 1512 |
+
"plusdu;": "\u2A25",
|
| 1513 |
+
"pluse;": "\u2A72",
|
| 1514 |
+
"PlusMinus;": "\u00B1",
|
| 1515 |
+
"plusmn;": "\u00B1",
|
| 1516 |
+
"plusmn": "\u00B1",
|
| 1517 |
+
"plussim;": "\u2A26",
|
| 1518 |
+
"plustwo;": "\u2A27",
|
| 1519 |
+
"pm;": "\u00B1",
|
| 1520 |
+
"Poincareplane;": "\u210C",
|
| 1521 |
+
"pointint;": "\u2A15",
|
| 1522 |
+
"Popf;": "\u2119",
|
| 1523 |
+
"popf;": "\uD835\uDD61",
|
| 1524 |
+
"pound;": "\u00A3",
|
| 1525 |
+
"pound": "\u00A3",
|
| 1526 |
+
"Pr;": "\u2ABB",
|
| 1527 |
+
"pr;": "\u227A",
|
| 1528 |
+
"prap;": "\u2AB7",
|
| 1529 |
+
"prcue;": "\u227C",
|
| 1530 |
+
"prE;": "\u2AB3",
|
| 1531 |
+
"pre;": "\u2AAF",
|
| 1532 |
+
"prec;": "\u227A",
|
| 1533 |
+
"precapprox;": "\u2AB7",
|
| 1534 |
+
"preccurlyeq;": "\u227C",
|
| 1535 |
+
"Precedes;": "\u227A",
|
| 1536 |
+
"PrecedesEqual;": "\u2AAF",
|
| 1537 |
+
"PrecedesSlantEqual;": "\u227C",
|
| 1538 |
+
"PrecedesTilde;": "\u227E",
|
| 1539 |
+
"preceq;": "\u2AAF",
|
| 1540 |
+
"precnapprox;": "\u2AB9",
|
| 1541 |
+
"precneqq;": "\u2AB5",
|
| 1542 |
+
"precnsim;": "\u22E8",
|
| 1543 |
+
"precsim;": "\u227E",
|
| 1544 |
+
"Prime;": "\u2033",
|
| 1545 |
+
"prime;": "\u2032",
|
| 1546 |
+
"primes;": "\u2119",
|
| 1547 |
+
"prnap;": "\u2AB9",
|
| 1548 |
+
"prnE;": "\u2AB5",
|
| 1549 |
+
"prnsim;": "\u22E8",
|
| 1550 |
+
"prod;": "\u220F",
|
| 1551 |
+
"Product;": "\u220F",
|
| 1552 |
+
"profalar;": "\u232E",
|
| 1553 |
+
"profline;": "\u2312",
|
| 1554 |
+
"profsurf;": "\u2313",
|
| 1555 |
+
"prop;": "\u221D",
|
| 1556 |
+
"Proportion;": "\u2237",
|
| 1557 |
+
"Proportional;": "\u221D",
|
| 1558 |
+
"propto;": "\u221D",
|
| 1559 |
+
"prsim;": "\u227E",
|
| 1560 |
+
"prurel;": "\u22B0",
|
| 1561 |
+
"Pscr;": "\uD835\uDCAB",
|
| 1562 |
+
"pscr;": "\uD835\uDCC5",
|
| 1563 |
+
"Psi;": "\u03A8",
|
| 1564 |
+
"psi;": "\u03C8",
|
| 1565 |
+
"puncsp;": "\u2008",
|
| 1566 |
+
"Qfr;": "\uD835\uDD14",
|
| 1567 |
+
"qfr;": "\uD835\uDD2E",
|
| 1568 |
+
"qint;": "\u2A0C",
|
| 1569 |
+
"Qopf;": "\u211A",
|
| 1570 |
+
"qopf;": "\uD835\uDD62",
|
| 1571 |
+
"qprime;": "\u2057",
|
| 1572 |
+
"Qscr;": "\uD835\uDCAC",
|
| 1573 |
+
"qscr;": "\uD835\uDCC6",
|
| 1574 |
+
"quaternions;": "\u210D",
|
| 1575 |
+
"quatint;": "\u2A16",
|
| 1576 |
+
"quest;": "\u003F",
|
| 1577 |
+
"questeq;": "\u225F",
|
| 1578 |
+
"QUOT;": "\u0022",
|
| 1579 |
+
"QUOT": "\u0022",
|
| 1580 |
+
"quot;": "\u0022",
|
| 1581 |
+
"quot": "\u0022",
|
| 1582 |
+
"rAarr;": "\u21DB",
|
| 1583 |
+
"race;": "\u223D\u0331",
|
| 1584 |
+
"Racute;": "\u0154",
|
| 1585 |
+
"racute;": "\u0155",
|
| 1586 |
+
"radic;": "\u221A",
|
| 1587 |
+
"raemptyv;": "\u29B3",
|
| 1588 |
+
"Rang;": "\u27EB",
|
| 1589 |
+
"rang;": "\u27E9",
|
| 1590 |
+
"rangd;": "\u2992",
|
| 1591 |
+
"range;": "\u29A5",
|
| 1592 |
+
"rangle;": "\u27E9",
|
| 1593 |
+
"raquo;": "\u00BB",
|
| 1594 |
+
"raquo": "\u00BB",
|
| 1595 |
+
"Rarr;": "\u21A0",
|
| 1596 |
+
"rArr;": "\u21D2",
|
| 1597 |
+
"rarr;": "\u2192",
|
| 1598 |
+
"rarrap;": "\u2975",
|
| 1599 |
+
"rarrb;": "\u21E5",
|
| 1600 |
+
"rarrbfs;": "\u2920",
|
| 1601 |
+
"rarrc;": "\u2933",
|
| 1602 |
+
"rarrfs;": "\u291E",
|
| 1603 |
+
"rarrhk;": "\u21AA",
|
| 1604 |
+
"rarrlp;": "\u21AC",
|
| 1605 |
+
"rarrpl;": "\u2945",
|
| 1606 |
+
"rarrsim;": "\u2974",
|
| 1607 |
+
"Rarrtl;": "\u2916",
|
| 1608 |
+
"rarrtl;": "\u21A3",
|
| 1609 |
+
"rarrw;": "\u219D",
|
| 1610 |
+
"rAtail;": "\u291C",
|
| 1611 |
+
"ratail;": "\u291A",
|
| 1612 |
+
"ratio;": "\u2236",
|
| 1613 |
+
"rationals;": "\u211A",
|
| 1614 |
+
"RBarr;": "\u2910",
|
| 1615 |
+
"rBarr;": "\u290F",
|
| 1616 |
+
"rbarr;": "\u290D",
|
| 1617 |
+
"rbbrk;": "\u2773",
|
| 1618 |
+
"rbrace;": "\u007D",
|
| 1619 |
+
"rbrack;": "\u005D",
|
| 1620 |
+
"rbrke;": "\u298C",
|
| 1621 |
+
"rbrksld;": "\u298E",
|
| 1622 |
+
"rbrkslu;": "\u2990",
|
| 1623 |
+
"Rcaron;": "\u0158",
|
| 1624 |
+
"rcaron;": "\u0159",
|
| 1625 |
+
"Rcedil;": "\u0156",
|
| 1626 |
+
"rcedil;": "\u0157",
|
| 1627 |
+
"rceil;": "\u2309",
|
| 1628 |
+
"rcub;": "\u007D",
|
| 1629 |
+
"Rcy;": "\u0420",
|
| 1630 |
+
"rcy;": "\u0440",
|
| 1631 |
+
"rdca;": "\u2937",
|
| 1632 |
+
"rdldhar;": "\u2969",
|
| 1633 |
+
"rdquo;": "\u201D",
|
| 1634 |
+
"rdquor;": "\u201D",
|
| 1635 |
+
"rdsh;": "\u21B3",
|
| 1636 |
+
"Re;": "\u211C",
|
| 1637 |
+
"real;": "\u211C",
|
| 1638 |
+
"realine;": "\u211B",
|
| 1639 |
+
"realpart;": "\u211C",
|
| 1640 |
+
"reals;": "\u211D",
|
| 1641 |
+
"rect;": "\u25AD",
|
| 1642 |
+
"REG;": "\u00AE",
|
| 1643 |
+
"REG": "\u00AE",
|
| 1644 |
+
"reg;": "\u00AE",
|
| 1645 |
+
"reg": "\u00AE",
|
| 1646 |
+
"ReverseElement;": "\u220B",
|
| 1647 |
+
"ReverseEquilibrium;": "\u21CB",
|
| 1648 |
+
"ReverseUpEquilibrium;": "\u296F",
|
| 1649 |
+
"rfisht;": "\u297D",
|
| 1650 |
+
"rfloor;": "\u230B",
|
| 1651 |
+
"Rfr;": "\u211C",
|
| 1652 |
+
"rfr;": "\uD835\uDD2F",
|
| 1653 |
+
"rHar;": "\u2964",
|
| 1654 |
+
"rhard;": "\u21C1",
|
| 1655 |
+
"rharu;": "\u21C0",
|
| 1656 |
+
"rharul;": "\u296C",
|
| 1657 |
+
"Rho;": "\u03A1",
|
| 1658 |
+
"rho;": "\u03C1",
|
| 1659 |
+
"rhov;": "\u03F1",
|
| 1660 |
+
"RightAngleBracket;": "\u27E9",
|
| 1661 |
+
"RightArrow;": "\u2192",
|
| 1662 |
+
"Rightarrow;": "\u21D2",
|
| 1663 |
+
"rightarrow;": "\u2192",
|
| 1664 |
+
"RightArrowBar;": "\u21E5",
|
| 1665 |
+
"RightArrowLeftArrow;": "\u21C4",
|
| 1666 |
+
"rightarrowtail;": "\u21A3",
|
| 1667 |
+
"RightCeiling;": "\u2309",
|
| 1668 |
+
"RightDoubleBracket;": "\u27E7",
|
| 1669 |
+
"RightDownTeeVector;": "\u295D",
|
| 1670 |
+
"RightDownVector;": "\u21C2",
|
| 1671 |
+
"RightDownVectorBar;": "\u2955",
|
| 1672 |
+
"RightFloor;": "\u230B",
|
| 1673 |
+
"rightharpoondown;": "\u21C1",
|
| 1674 |
+
"rightharpoonup;": "\u21C0",
|
| 1675 |
+
"rightleftarrows;": "\u21C4",
|
| 1676 |
+
"rightleftharpoons;": "\u21CC",
|
| 1677 |
+
"rightrightarrows;": "\u21C9",
|
| 1678 |
+
"rightsquigarrow;": "\u219D",
|
| 1679 |
+
"RightTee;": "\u22A2",
|
| 1680 |
+
"RightTeeArrow;": "\u21A6",
|
| 1681 |
+
"RightTeeVector;": "\u295B",
|
| 1682 |
+
"rightthreetimes;": "\u22CC",
|
| 1683 |
+
"RightTriangle;": "\u22B3",
|
| 1684 |
+
"RightTriangleBar;": "\u29D0",
|
| 1685 |
+
"RightTriangleEqual;": "\u22B5",
|
| 1686 |
+
"RightUpDownVector;": "\u294F",
|
| 1687 |
+
"RightUpTeeVector;": "\u295C",
|
| 1688 |
+
"RightUpVector;": "\u21BE",
|
| 1689 |
+
"RightUpVectorBar;": "\u2954",
|
| 1690 |
+
"RightVector;": "\u21C0",
|
| 1691 |
+
"RightVectorBar;": "\u2953",
|
| 1692 |
+
"ring;": "\u02DA",
|
| 1693 |
+
"risingdotseq;": "\u2253",
|
| 1694 |
+
"rlarr;": "\u21C4",
|
| 1695 |
+
"rlhar;": "\u21CC",
|
| 1696 |
+
"rlm;": "\u200F",
|
| 1697 |
+
"rmoust;": "\u23B1",
|
| 1698 |
+
"rmoustache;": "\u23B1",
|
| 1699 |
+
"rnmid;": "\u2AEE",
|
| 1700 |
+
"roang;": "\u27ED",
|
| 1701 |
+
"roarr;": "\u21FE",
|
| 1702 |
+
"robrk;": "\u27E7",
|
| 1703 |
+
"ropar;": "\u2986",
|
| 1704 |
+
"Ropf;": "\u211D",
|
| 1705 |
+
"ropf;": "\uD835\uDD63",
|
| 1706 |
+
"roplus;": "\u2A2E",
|
| 1707 |
+
"rotimes;": "\u2A35",
|
| 1708 |
+
"RoundImplies;": "\u2970",
|
| 1709 |
+
"rpar;": "\u0029",
|
| 1710 |
+
"rpargt;": "\u2994",
|
| 1711 |
+
"rppolint;": "\u2A12",
|
| 1712 |
+
"rrarr;": "\u21C9",
|
| 1713 |
+
"Rrightarrow;": "\u21DB",
|
| 1714 |
+
"rsaquo;": "\u203A",
|
| 1715 |
+
"Rscr;": "\u211B",
|
| 1716 |
+
"rscr;": "\uD835\uDCC7",
|
| 1717 |
+
"Rsh;": "\u21B1",
|
| 1718 |
+
"rsh;": "\u21B1",
|
| 1719 |
+
"rsqb;": "\u005D",
|
| 1720 |
+
"rsquo;": "\u2019",
|
| 1721 |
+
"rsquor;": "\u2019",
|
| 1722 |
+
"rthree;": "\u22CC",
|
| 1723 |
+
"rtimes;": "\u22CA",
|
| 1724 |
+
"rtri;": "\u25B9",
|
| 1725 |
+
"rtrie;": "\u22B5",
|
| 1726 |
+
"rtrif;": "\u25B8",
|
| 1727 |
+
"rtriltri;": "\u29CE",
|
| 1728 |
+
"RuleDelayed;": "\u29F4",
|
| 1729 |
+
"ruluhar;": "\u2968",
|
| 1730 |
+
"rx;": "\u211E",
|
| 1731 |
+
"Sacute;": "\u015A",
|
| 1732 |
+
"sacute;": "\u015B",
|
| 1733 |
+
"sbquo;": "\u201A",
|
| 1734 |
+
"Sc;": "\u2ABC",
|
| 1735 |
+
"sc;": "\u227B",
|
| 1736 |
+
"scap;": "\u2AB8",
|
| 1737 |
+
"Scaron;": "\u0160",
|
| 1738 |
+
"scaron;": "\u0161",
|
| 1739 |
+
"sccue;": "\u227D",
|
| 1740 |
+
"scE;": "\u2AB4",
|
| 1741 |
+
"sce;": "\u2AB0",
|
| 1742 |
+
"Scedil;": "\u015E",
|
| 1743 |
+
"scedil;": "\u015F",
|
| 1744 |
+
"Scirc;": "\u015C",
|
| 1745 |
+
"scirc;": "\u015D",
|
| 1746 |
+
"scnap;": "\u2ABA",
|
| 1747 |
+
"scnE;": "\u2AB6",
|
| 1748 |
+
"scnsim;": "\u22E9",
|
| 1749 |
+
"scpolint;": "\u2A13",
|
| 1750 |
+
"scsim;": "\u227F",
|
| 1751 |
+
"Scy;": "\u0421",
|
| 1752 |
+
"scy;": "\u0441",
|
| 1753 |
+
"sdot;": "\u22C5",
|
| 1754 |
+
"sdotb;": "\u22A1",
|
| 1755 |
+
"sdote;": "\u2A66",
|
| 1756 |
+
"searhk;": "\u2925",
|
| 1757 |
+
"seArr;": "\u21D8",
|
| 1758 |
+
"searr;": "\u2198",
|
| 1759 |
+
"searrow;": "\u2198",
|
| 1760 |
+
"sect;": "\u00A7",
|
| 1761 |
+
"sect": "\u00A7",
|
| 1762 |
+
"semi;": "\u003B",
|
| 1763 |
+
"seswar;": "\u2929",
|
| 1764 |
+
"setminus;": "\u2216",
|
| 1765 |
+
"setmn;": "\u2216",
|
| 1766 |
+
"sext;": "\u2736",
|
| 1767 |
+
"Sfr;": "\uD835\uDD16",
|
| 1768 |
+
"sfr;": "\uD835\uDD30",
|
| 1769 |
+
"sfrown;": "\u2322",
|
| 1770 |
+
"sharp;": "\u266F",
|
| 1771 |
+
"SHCHcy;": "\u0429",
|
| 1772 |
+
"shchcy;": "\u0449",
|
| 1773 |
+
"SHcy;": "\u0428",
|
| 1774 |
+
"shcy;": "\u0448",
|
| 1775 |
+
"ShortDownArrow;": "\u2193",
|
| 1776 |
+
"ShortLeftArrow;": "\u2190",
|
| 1777 |
+
"shortmid;": "\u2223",
|
| 1778 |
+
"shortparallel;": "\u2225",
|
| 1779 |
+
"ShortRightArrow;": "\u2192",
|
| 1780 |
+
"ShortUpArrow;": "\u2191",
|
| 1781 |
+
"shy;": "\u00AD",
|
| 1782 |
+
"shy": "\u00AD",
|
| 1783 |
+
"Sigma;": "\u03A3",
|
| 1784 |
+
"sigma;": "\u03C3",
|
| 1785 |
+
"sigmaf;": "\u03C2",
|
| 1786 |
+
"sigmav;": "\u03C2",
|
| 1787 |
+
"sim;": "\u223C",
|
| 1788 |
+
"simdot;": "\u2A6A",
|
| 1789 |
+
"sime;": "\u2243",
|
| 1790 |
+
"simeq;": "\u2243",
|
| 1791 |
+
"simg;": "\u2A9E",
|
| 1792 |
+
"simgE;": "\u2AA0",
|
| 1793 |
+
"siml;": "\u2A9D",
|
| 1794 |
+
"simlE;": "\u2A9F",
|
| 1795 |
+
"simne;": "\u2246",
|
| 1796 |
+
"simplus;": "\u2A24",
|
| 1797 |
+
"simrarr;": "\u2972",
|
| 1798 |
+
"slarr;": "\u2190",
|
| 1799 |
+
"SmallCircle;": "\u2218",
|
| 1800 |
+
"smallsetminus;": "\u2216",
|
| 1801 |
+
"smashp;": "\u2A33",
|
| 1802 |
+
"smeparsl;": "\u29E4",
|
| 1803 |
+
"smid;": "\u2223",
|
| 1804 |
+
"smile;": "\u2323",
|
| 1805 |
+
"smt;": "\u2AAA",
|
| 1806 |
+
"smte;": "\u2AAC",
|
| 1807 |
+
"smtes;": "\u2AAC\uFE00",
|
| 1808 |
+
"SOFTcy;": "\u042C",
|
| 1809 |
+
"softcy;": "\u044C",
|
| 1810 |
+
"sol;": "\u002F",
|
| 1811 |
+
"solb;": "\u29C4",
|
| 1812 |
+
"solbar;": "\u233F",
|
| 1813 |
+
"Sopf;": "\uD835\uDD4A",
|
| 1814 |
+
"sopf;": "\uD835\uDD64",
|
| 1815 |
+
"spades;": "\u2660",
|
| 1816 |
+
"spadesuit;": "\u2660",
|
| 1817 |
+
"spar;": "\u2225",
|
| 1818 |
+
"sqcap;": "\u2293",
|
| 1819 |
+
"sqcaps;": "\u2293\uFE00",
|
| 1820 |
+
"sqcup;": "\u2294",
|
| 1821 |
+
"sqcups;": "\u2294\uFE00",
|
| 1822 |
+
"Sqrt;": "\u221A",
|
| 1823 |
+
"sqsub;": "\u228F",
|
| 1824 |
+
"sqsube;": "\u2291",
|
| 1825 |
+
"sqsubset;": "\u228F",
|
| 1826 |
+
"sqsubseteq;": "\u2291",
|
| 1827 |
+
"sqsup;": "\u2290",
|
| 1828 |
+
"sqsupe;": "\u2292",
|
| 1829 |
+
"sqsupset;": "\u2290",
|
| 1830 |
+
"sqsupseteq;": "\u2292",
|
| 1831 |
+
"squ;": "\u25A1",
|
| 1832 |
+
"Square;": "\u25A1",
|
| 1833 |
+
"square;": "\u25A1",
|
| 1834 |
+
"SquareIntersection;": "\u2293",
|
| 1835 |
+
"SquareSubset;": "\u228F",
|
| 1836 |
+
"SquareSubsetEqual;": "\u2291",
|
| 1837 |
+
"SquareSuperset;": "\u2290",
|
| 1838 |
+
"SquareSupersetEqual;": "\u2292",
|
| 1839 |
+
"SquareUnion;": "\u2294",
|
| 1840 |
+
"squarf;": "\u25AA",
|
| 1841 |
+
"squf;": "\u25AA",
|
| 1842 |
+
"srarr;": "\u2192",
|
| 1843 |
+
"Sscr;": "\uD835\uDCAE",
|
| 1844 |
+
"sscr;": "\uD835\uDCC8",
|
| 1845 |
+
"ssetmn;": "\u2216",
|
| 1846 |
+
"ssmile;": "\u2323",
|
| 1847 |
+
"sstarf;": "\u22C6",
|
| 1848 |
+
"Star;": "\u22C6",
|
| 1849 |
+
"star;": "\u2606",
|
| 1850 |
+
"starf;": "\u2605",
|
| 1851 |
+
"straightepsilon;": "\u03F5",
|
| 1852 |
+
"straightphi;": "\u03D5",
|
| 1853 |
+
"strns;": "\u00AF",
|
| 1854 |
+
"Sub;": "\u22D0",
|
| 1855 |
+
"sub;": "\u2282",
|
| 1856 |
+
"subdot;": "\u2ABD",
|
| 1857 |
+
"subE;": "\u2AC5",
|
| 1858 |
+
"sube;": "\u2286",
|
| 1859 |
+
"subedot;": "\u2AC3",
|
| 1860 |
+
"submult;": "\u2AC1",
|
| 1861 |
+
"subnE;": "\u2ACB",
|
| 1862 |
+
"subne;": "\u228A",
|
| 1863 |
+
"subplus;": "\u2ABF",
|
| 1864 |
+
"subrarr;": "\u2979",
|
| 1865 |
+
"Subset;": "\u22D0",
|
| 1866 |
+
"subset;": "\u2282",
|
| 1867 |
+
"subseteq;": "\u2286",
|
| 1868 |
+
"subseteqq;": "\u2AC5",
|
| 1869 |
+
"SubsetEqual;": "\u2286",
|
| 1870 |
+
"subsetneq;": "\u228A",
|
| 1871 |
+
"subsetneqq;": "\u2ACB",
|
| 1872 |
+
"subsim;": "\u2AC7",
|
| 1873 |
+
"subsub;": "\u2AD5",
|
| 1874 |
+
"subsup;": "\u2AD3",
|
| 1875 |
+
"succ;": "\u227B",
|
| 1876 |
+
"succapprox;": "\u2AB8",
|
| 1877 |
+
"succcurlyeq;": "\u227D",
|
| 1878 |
+
"Succeeds;": "\u227B",
|
| 1879 |
+
"SucceedsEqual;": "\u2AB0",
|
| 1880 |
+
"SucceedsSlantEqual;": "\u227D",
|
| 1881 |
+
"SucceedsTilde;": "\u227F",
|
| 1882 |
+
"succeq;": "\u2AB0",
|
| 1883 |
+
"succnapprox;": "\u2ABA",
|
| 1884 |
+
"succneqq;": "\u2AB6",
|
| 1885 |
+
"succnsim;": "\u22E9",
|
| 1886 |
+
"succsim;": "\u227F",
|
| 1887 |
+
"SuchThat;": "\u220B",
|
| 1888 |
+
"Sum;": "\u2211",
|
| 1889 |
+
"sum;": "\u2211",
|
| 1890 |
+
"sung;": "\u266A",
|
| 1891 |
+
"Sup;": "\u22D1",
|
| 1892 |
+
"sup;": "\u2283",
|
| 1893 |
+
"sup1;": "\u00B9",
|
| 1894 |
+
"sup1": "\u00B9",
|
| 1895 |
+
"sup2;": "\u00B2",
|
| 1896 |
+
"sup2": "\u00B2",
|
| 1897 |
+
"sup3;": "\u00B3",
|
| 1898 |
+
"sup3": "\u00B3",
|
| 1899 |
+
"supdot;": "\u2ABE",
|
| 1900 |
+
"supdsub;": "\u2AD8",
|
| 1901 |
+
"supE;": "\u2AC6",
|
| 1902 |
+
"supe;": "\u2287",
|
| 1903 |
+
"supedot;": "\u2AC4",
|
| 1904 |
+
"Superset;": "\u2283",
|
| 1905 |
+
"SupersetEqual;": "\u2287",
|
| 1906 |
+
"suphsol;": "\u27C9",
|
| 1907 |
+
"suphsub;": "\u2AD7",
|
| 1908 |
+
"suplarr;": "\u297B",
|
| 1909 |
+
"supmult;": "\u2AC2",
|
| 1910 |
+
"supnE;": "\u2ACC",
|
| 1911 |
+
"supne;": "\u228B",
|
| 1912 |
+
"supplus;": "\u2AC0",
|
| 1913 |
+
"Supset;": "\u22D1",
|
| 1914 |
+
"supset;": "\u2283",
|
| 1915 |
+
"supseteq;": "\u2287",
|
| 1916 |
+
"supseteqq;": "\u2AC6",
|
| 1917 |
+
"supsetneq;": "\u228B",
|
| 1918 |
+
"supsetneqq;": "\u2ACC",
|
| 1919 |
+
"supsim;": "\u2AC8",
|
| 1920 |
+
"supsub;": "\u2AD4",
|
| 1921 |
+
"supsup;": "\u2AD6",
|
| 1922 |
+
"swarhk;": "\u2926",
|
| 1923 |
+
"swArr;": "\u21D9",
|
| 1924 |
+
"swarr;": "\u2199",
|
| 1925 |
+
"swarrow;": "\u2199",
|
| 1926 |
+
"swnwar;": "\u292A",
|
| 1927 |
+
"szlig;": "\u00DF",
|
| 1928 |
+
"szlig": "\u00DF",
|
| 1929 |
+
"Tab;": "\u0009",
|
| 1930 |
+
"target;": "\u2316",
|
| 1931 |
+
"Tau;": "\u03A4",
|
| 1932 |
+
"tau;": "\u03C4",
|
| 1933 |
+
"tbrk;": "\u23B4",
|
| 1934 |
+
"Tcaron;": "\u0164",
|
| 1935 |
+
"tcaron;": "\u0165",
|
| 1936 |
+
"Tcedil;": "\u0162",
|
| 1937 |
+
"tcedil;": "\u0163",
|
| 1938 |
+
"Tcy;": "\u0422",
|
| 1939 |
+
"tcy;": "\u0442",
|
| 1940 |
+
"tdot;": "\u20DB",
|
| 1941 |
+
"telrec;": "\u2315",
|
| 1942 |
+
"Tfr;": "\uD835\uDD17",
|
| 1943 |
+
"tfr;": "\uD835\uDD31",
|
| 1944 |
+
"there4;": "\u2234",
|
| 1945 |
+
"Therefore;": "\u2234",
|
| 1946 |
+
"therefore;": "\u2234",
|
| 1947 |
+
"Theta;": "\u0398",
|
| 1948 |
+
"theta;": "\u03B8",
|
| 1949 |
+
"thetasym;": "\u03D1",
|
| 1950 |
+
"thetav;": "\u03D1",
|
| 1951 |
+
"thickapprox;": "\u2248",
|
| 1952 |
+
"thicksim;": "\u223C",
|
| 1953 |
+
"ThickSpace;": "\u205F\u200A",
|
| 1954 |
+
"thinsp;": "\u2009",
|
| 1955 |
+
"ThinSpace;": "\u2009",
|
| 1956 |
+
"thkap;": "\u2248",
|
| 1957 |
+
"thksim;": "\u223C",
|
| 1958 |
+
"THORN;": "\u00DE",
|
| 1959 |
+
"THORN": "\u00DE",
|
| 1960 |
+
"thorn;": "\u00FE",
|
| 1961 |
+
"thorn": "\u00FE",
|
| 1962 |
+
"Tilde;": "\u223C",
|
| 1963 |
+
"tilde;": "\u02DC",
|
| 1964 |
+
"TildeEqual;": "\u2243",
|
| 1965 |
+
"TildeFullEqual;": "\u2245",
|
| 1966 |
+
"TildeTilde;": "\u2248",
|
| 1967 |
+
"times;": "\u00D7",
|
| 1968 |
+
"times": "\u00D7",
|
| 1969 |
+
"timesb;": "\u22A0",
|
| 1970 |
+
"timesbar;": "\u2A31",
|
| 1971 |
+
"timesd;": "\u2A30",
|
| 1972 |
+
"tint;": "\u222D",
|
| 1973 |
+
"toea;": "\u2928",
|
| 1974 |
+
"top;": "\u22A4",
|
| 1975 |
+
"topbot;": "\u2336",
|
| 1976 |
+
"topcir;": "\u2AF1",
|
| 1977 |
+
"Topf;": "\uD835\uDD4B",
|
| 1978 |
+
"topf;": "\uD835\uDD65",
|
| 1979 |
+
"topfork;": "\u2ADA",
|
| 1980 |
+
"tosa;": "\u2929",
|
| 1981 |
+
"tprime;": "\u2034",
|
| 1982 |
+
"TRADE;": "\u2122",
|
| 1983 |
+
"trade;": "\u2122",
|
| 1984 |
+
"triangle;": "\u25B5",
|
| 1985 |
+
"triangledown;": "\u25BF",
|
| 1986 |
+
"triangleleft;": "\u25C3",
|
| 1987 |
+
"trianglelefteq;": "\u22B4",
|
| 1988 |
+
"triangleq;": "\u225C",
|
| 1989 |
+
"triangleright;": "\u25B9",
|
| 1990 |
+
"trianglerighteq;": "\u22B5",
|
| 1991 |
+
"tridot;": "\u25EC",
|
| 1992 |
+
"trie;": "\u225C",
|
| 1993 |
+
"triminus;": "\u2A3A",
|
| 1994 |
+
"TripleDot;": "\u20DB",
|
| 1995 |
+
"triplus;": "\u2A39",
|
| 1996 |
+
"trisb;": "\u29CD",
|
| 1997 |
+
"tritime;": "\u2A3B",
|
| 1998 |
+
"trpezium;": "\u23E2",
|
| 1999 |
+
"Tscr;": "\uD835\uDCAF",
|
| 2000 |
+
"tscr;": "\uD835\uDCC9",
|
| 2001 |
+
"TScy;": "\u0426",
|
| 2002 |
+
"tscy;": "\u0446",
|
| 2003 |
+
"TSHcy;": "\u040B",
|
| 2004 |
+
"tshcy;": "\u045B",
|
| 2005 |
+
"Tstrok;": "\u0166",
|
| 2006 |
+
"tstrok;": "\u0167",
|
| 2007 |
+
"twixt;": "\u226C",
|
| 2008 |
+
"twoheadleftarrow;": "\u219E",
|
| 2009 |
+
"twoheadrightarrow;": "\u21A0",
|
| 2010 |
+
"Uacute;": "\u00DA",
|
| 2011 |
+
"Uacute": "\u00DA",
|
| 2012 |
+
"uacute;": "\u00FA",
|
| 2013 |
+
"uacute": "\u00FA",
|
| 2014 |
+
"Uarr;": "\u219F",
|
| 2015 |
+
"uArr;": "\u21D1",
|
| 2016 |
+
"uarr;": "\u2191",
|
| 2017 |
+
"Uarrocir;": "\u2949",
|
| 2018 |
+
"Ubrcy;": "\u040E",
|
| 2019 |
+
"ubrcy;": "\u045E",
|
| 2020 |
+
"Ubreve;": "\u016C",
|
| 2021 |
+
"ubreve;": "\u016D",
|
| 2022 |
+
"Ucirc;": "\u00DB",
|
| 2023 |
+
"Ucirc": "\u00DB",
|
| 2024 |
+
"ucirc;": "\u00FB",
|
| 2025 |
+
"ucirc": "\u00FB",
|
| 2026 |
+
"Ucy;": "\u0423",
|
| 2027 |
+
"ucy;": "\u0443",
|
| 2028 |
+
"udarr;": "\u21C5",
|
| 2029 |
+
"Udblac;": "\u0170",
|
| 2030 |
+
"udblac;": "\u0171",
|
| 2031 |
+
"udhar;": "\u296E",
|
| 2032 |
+
"ufisht;": "\u297E",
|
| 2033 |
+
"Ufr;": "\uD835\uDD18",
|
| 2034 |
+
"ufr;": "\uD835\uDD32",
|
| 2035 |
+
"Ugrave;": "\u00D9",
|
| 2036 |
+
"Ugrave": "\u00D9",
|
| 2037 |
+
"ugrave;": "\u00F9",
|
| 2038 |
+
"ugrave": "\u00F9",
|
| 2039 |
+
"uHar;": "\u2963",
|
| 2040 |
+
"uharl;": "\u21BF",
|
| 2041 |
+
"uharr;": "\u21BE",
|
| 2042 |
+
"uhblk;": "\u2580",
|
| 2043 |
+
"ulcorn;": "\u231C",
|
| 2044 |
+
"ulcorner;": "\u231C",
|
| 2045 |
+
"ulcrop;": "\u230F",
|
| 2046 |
+
"ultri;": "\u25F8",
|
| 2047 |
+
"Umacr;": "\u016A",
|
| 2048 |
+
"umacr;": "\u016B",
|
| 2049 |
+
"uml;": "\u00A8",
|
| 2050 |
+
"uml": "\u00A8",
|
| 2051 |
+
"UnderBar;": "\u005F",
|
| 2052 |
+
"UnderBrace;": "\u23DF",
|
| 2053 |
+
"UnderBracket;": "\u23B5",
|
| 2054 |
+
"UnderParenthesis;": "\u23DD",
|
| 2055 |
+
"Union;": "\u22C3",
|
| 2056 |
+
"UnionPlus;": "\u228E",
|
| 2057 |
+
"Uogon;": "\u0172",
|
| 2058 |
+
"uogon;": "\u0173",
|
| 2059 |
+
"Uopf;": "\uD835\uDD4C",
|
| 2060 |
+
"uopf;": "\uD835\uDD66",
|
| 2061 |
+
"UpArrow;": "\u2191",
|
| 2062 |
+
"Uparrow;": "\u21D1",
|
| 2063 |
+
"uparrow;": "\u2191",
|
| 2064 |
+
"UpArrowBar;": "\u2912",
|
| 2065 |
+
"UpArrowDownArrow;": "\u21C5",
|
| 2066 |
+
"UpDownArrow;": "\u2195",
|
| 2067 |
+
"Updownarrow;": "\u21D5",
|
| 2068 |
+
"updownarrow;": "\u2195",
|
| 2069 |
+
"UpEquilibrium;": "\u296E",
|
| 2070 |
+
"upharpoonleft;": "\u21BF",
|
| 2071 |
+
"upharpoonright;": "\u21BE",
|
| 2072 |
+
"uplus;": "\u228E",
|
| 2073 |
+
"UpperLeftArrow;": "\u2196",
|
| 2074 |
+
"UpperRightArrow;": "\u2197",
|
| 2075 |
+
"Upsi;": "\u03D2",
|
| 2076 |
+
"upsi;": "\u03C5",
|
| 2077 |
+
"upsih;": "\u03D2",
|
| 2078 |
+
"Upsilon;": "\u03A5",
|
| 2079 |
+
"upsilon;": "\u03C5",
|
| 2080 |
+
"UpTee;": "\u22A5",
|
| 2081 |
+
"UpTeeArrow;": "\u21A5",
|
| 2082 |
+
"upuparrows;": "\u21C8",
|
| 2083 |
+
"urcorn;": "\u231D",
|
| 2084 |
+
"urcorner;": "\u231D",
|
| 2085 |
+
"urcrop;": "\u230E",
|
| 2086 |
+
"Uring;": "\u016E",
|
| 2087 |
+
"uring;": "\u016F",
|
| 2088 |
+
"urtri;": "\u25F9",
|
| 2089 |
+
"Uscr;": "\uD835\uDCB0",
|
| 2090 |
+
"uscr;": "\uD835\uDCCA",
|
| 2091 |
+
"utdot;": "\u22F0",
|
| 2092 |
+
"Utilde;": "\u0168",
|
| 2093 |
+
"utilde;": "\u0169",
|
| 2094 |
+
"utri;": "\u25B5",
|
| 2095 |
+
"utrif;": "\u25B4",
|
| 2096 |
+
"uuarr;": "\u21C8",
|
| 2097 |
+
"Uuml;": "\u00DC",
|
| 2098 |
+
"Uuml": "\u00DC",
|
| 2099 |
+
"uuml;": "\u00FC",
|
| 2100 |
+
"uuml": "\u00FC",
|
| 2101 |
+
"uwangle;": "\u29A7",
|
| 2102 |
+
"vangrt;": "\u299C",
|
| 2103 |
+
"varepsilon;": "\u03F5",
|
| 2104 |
+
"varkappa;": "\u03F0",
|
| 2105 |
+
"varnothing;": "\u2205",
|
| 2106 |
+
"varphi;": "\u03D5",
|
| 2107 |
+
"varpi;": "\u03D6",
|
| 2108 |
+
"varpropto;": "\u221D",
|
| 2109 |
+
"vArr;": "\u21D5",
|
| 2110 |
+
"varr;": "\u2195",
|
| 2111 |
+
"varrho;": "\u03F1",
|
| 2112 |
+
"varsigma;": "\u03C2",
|
| 2113 |
+
"varsubsetneq;": "\u228A\uFE00",
|
| 2114 |
+
"varsubsetneqq;": "\u2ACB\uFE00",
|
| 2115 |
+
"varsupsetneq;": "\u228B\uFE00",
|
| 2116 |
+
"varsupsetneqq;": "\u2ACC\uFE00",
|
| 2117 |
+
"vartheta;": "\u03D1",
|
| 2118 |
+
"vartriangleleft;": "\u22B2",
|
| 2119 |
+
"vartriangleright;": "\u22B3",
|
| 2120 |
+
"Vbar;": "\u2AEB",
|
| 2121 |
+
"vBar;": "\u2AE8",
|
| 2122 |
+
"vBarv;": "\u2AE9",
|
| 2123 |
+
"Vcy;": "\u0412",
|
| 2124 |
+
"vcy;": "\u0432",
|
| 2125 |
+
"VDash;": "\u22AB",
|
| 2126 |
+
"Vdash;": "\u22A9",
|
| 2127 |
+
"vDash;": "\u22A8",
|
| 2128 |
+
"vdash;": "\u22A2",
|
| 2129 |
+
"Vdashl;": "\u2AE6",
|
| 2130 |
+
"Vee;": "\u22C1",
|
| 2131 |
+
"vee;": "\u2228",
|
| 2132 |
+
"veebar;": "\u22BB",
|
| 2133 |
+
"veeeq;": "\u225A",
|
| 2134 |
+
"vellip;": "\u22EE",
|
| 2135 |
+
"Verbar;": "\u2016",
|
| 2136 |
+
"verbar;": "\u007C",
|
| 2137 |
+
"Vert;": "\u2016",
|
| 2138 |
+
"vert;": "\u007C",
|
| 2139 |
+
"VerticalBar;": "\u2223",
|
| 2140 |
+
"VerticalLine;": "\u007C",
|
| 2141 |
+
"VerticalSeparator;": "\u2758",
|
| 2142 |
+
"VerticalTilde;": "\u2240",
|
| 2143 |
+
"VeryThinSpace;": "\u200A",
|
| 2144 |
+
"Vfr;": "\uD835\uDD19",
|
| 2145 |
+
"vfr;": "\uD835\uDD33",
|
| 2146 |
+
"vltri;": "\u22B2",
|
| 2147 |
+
"vnsub;": "\u2282\u20D2",
|
| 2148 |
+
"vnsup;": "\u2283\u20D2",
|
| 2149 |
+
"Vopf;": "\uD835\uDD4D",
|
| 2150 |
+
"vopf;": "\uD835\uDD67",
|
| 2151 |
+
"vprop;": "\u221D",
|
| 2152 |
+
"vrtri;": "\u22B3",
|
| 2153 |
+
"Vscr;": "\uD835\uDCB1",
|
| 2154 |
+
"vscr;": "\uD835\uDCCB",
|
| 2155 |
+
"vsubnE;": "\u2ACB\uFE00",
|
| 2156 |
+
"vsubne;": "\u228A\uFE00",
|
| 2157 |
+
"vsupnE;": "\u2ACC\uFE00",
|
| 2158 |
+
"vsupne;": "\u228B\uFE00",
|
| 2159 |
+
"Vvdash;": "\u22AA",
|
| 2160 |
+
"vzigzag;": "\u299A",
|
| 2161 |
+
"Wcirc;": "\u0174",
|
| 2162 |
+
"wcirc;": "\u0175",
|
| 2163 |
+
"wedbar;": "\u2A5F",
|
| 2164 |
+
"Wedge;": "\u22C0",
|
| 2165 |
+
"wedge;": "\u2227",
|
| 2166 |
+
"wedgeq;": "\u2259",
|
| 2167 |
+
"weierp;": "\u2118",
|
| 2168 |
+
"Wfr;": "\uD835\uDD1A",
|
| 2169 |
+
"wfr;": "\uD835\uDD34",
|
| 2170 |
+
"Wopf;": "\uD835\uDD4E",
|
| 2171 |
+
"wopf;": "\uD835\uDD68",
|
| 2172 |
+
"wp;": "\u2118",
|
| 2173 |
+
"wr;": "\u2240",
|
| 2174 |
+
"wreath;": "\u2240",
|
| 2175 |
+
"Wscr;": "\uD835\uDCB2",
|
| 2176 |
+
"wscr;": "\uD835\uDCCC",
|
| 2177 |
+
"xcap;": "\u22C2",
|
| 2178 |
+
"xcirc;": "\u25EF",
|
| 2179 |
+
"xcup;": "\u22C3",
|
| 2180 |
+
"xdtri;": "\u25BD",
|
| 2181 |
+
"Xfr;": "\uD835\uDD1B",
|
| 2182 |
+
"xfr;": "\uD835\uDD35",
|
| 2183 |
+
"xhArr;": "\u27FA",
|
| 2184 |
+
"xharr;": "\u27F7",
|
| 2185 |
+
"Xi;": "\u039E",
|
| 2186 |
+
"xi;": "\u03BE",
|
| 2187 |
+
"xlArr;": "\u27F8",
|
| 2188 |
+
"xlarr;": "\u27F5",
|
| 2189 |
+
"xmap;": "\u27FC",
|
| 2190 |
+
"xnis;": "\u22FB",
|
| 2191 |
+
"xodot;": "\u2A00",
|
| 2192 |
+
"Xopf;": "\uD835\uDD4F",
|
| 2193 |
+
"xopf;": "\uD835\uDD69",
|
| 2194 |
+
"xoplus;": "\u2A01",
|
| 2195 |
+
"xotime;": "\u2A02",
|
| 2196 |
+
"xrArr;": "\u27F9",
|
| 2197 |
+
"xrarr;": "\u27F6",
|
| 2198 |
+
"Xscr;": "\uD835\uDCB3",
|
| 2199 |
+
"xscr;": "\uD835\uDCCD",
|
| 2200 |
+
"xsqcup;": "\u2A06",
|
| 2201 |
+
"xuplus;": "\u2A04",
|
| 2202 |
+
"xutri;": "\u25B3",
|
| 2203 |
+
"xvee;": "\u22C1",
|
| 2204 |
+
"xwedge;": "\u22C0",
|
| 2205 |
+
"Yacute;": "\u00DD",
|
| 2206 |
+
"Yacute": "\u00DD",
|
| 2207 |
+
"yacute;": "\u00FD",
|
| 2208 |
+
"yacute": "\u00FD",
|
| 2209 |
+
"YAcy;": "\u042F",
|
| 2210 |
+
"yacy;": "\u044F",
|
| 2211 |
+
"Ycirc;": "\u0176",
|
| 2212 |
+
"ycirc;": "\u0177",
|
| 2213 |
+
"Ycy;": "\u042B",
|
| 2214 |
+
"ycy;": "\u044B",
|
| 2215 |
+
"yen;": "\u00A5",
|
| 2216 |
+
"yen": "\u00A5",
|
| 2217 |
+
"Yfr;": "\uD835\uDD1C",
|
| 2218 |
+
"yfr;": "\uD835\uDD36",
|
| 2219 |
+
"YIcy;": "\u0407",
|
| 2220 |
+
"yicy;": "\u0457",
|
| 2221 |
+
"Yopf;": "\uD835\uDD50",
|
| 2222 |
+
"yopf;": "\uD835\uDD6A",
|
| 2223 |
+
"Yscr;": "\uD835\uDCB4",
|
| 2224 |
+
"yscr;": "\uD835\uDCCE",
|
| 2225 |
+
"YUcy;": "\u042E",
|
| 2226 |
+
"yucy;": "\u044E",
|
| 2227 |
+
"Yuml;": "\u0178",
|
| 2228 |
+
"yuml;": "\u00FF",
|
| 2229 |
+
"yuml": "\u00FF",
|
| 2230 |
+
"Zacute;": "\u0179",
|
| 2231 |
+
"zacute;": "\u017A",
|
| 2232 |
+
"Zcaron;": "\u017D",
|
| 2233 |
+
"zcaron;": "\u017E",
|
| 2234 |
+
"Zcy;": "\u0417",
|
| 2235 |
+
"zcy;": "\u0437",
|
| 2236 |
+
"Zdot;": "\u017B",
|
| 2237 |
+
"zdot;": "\u017C",
|
| 2238 |
+
"zeetrf;": "\u2128",
|
| 2239 |
+
"ZeroWidthSpace;": "\u200B",
|
| 2240 |
+
"Zeta;": "\u0396",
|
| 2241 |
+
"zeta;": "\u03B6",
|
| 2242 |
+
"Zfr;": "\u2128",
|
| 2243 |
+
"zfr;": "\uD835\uDD37",
|
| 2244 |
+
"ZHcy;": "\u0416",
|
| 2245 |
+
"zhcy;": "\u0436",
|
| 2246 |
+
"zigrarr;": "\u21DD",
|
| 2247 |
+
"Zopf;": "\u2124",
|
| 2248 |
+
"zopf;": "\uD835\uDD6B",
|
| 2249 |
+
"Zscr;": "\uD835\uDCB5",
|
| 2250 |
+
"zscr;": "\uD835\uDCCF",
|
| 2251 |
+
"zwj;": "\u200D",
|
| 2252 |
+
"zwnj;": "\u200C"
|
| 2253 |
+
};
|
| 2254 |
+
});
|
Java开发环境安装/eclipse-jee-2024-06-R-win32-x86_64/eclipse/plugins/org.eclipse.wildwebdeveloper_1.2.2.202405280856/node_modules/volar-service-html/node_modules/vscode-html-languageservice/lib/umd/parser/htmlParser.js
CHANGED
|
@@ -1,3 +1,176 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*---------------------------------------------------------------------------------------------
|
| 2 |
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
| 3 |
+
* Licensed under the MIT License. See License.txt in the project root for license information.
|
| 4 |
+
*--------------------------------------------------------------------------------------------*/
|
| 5 |
+
(function (factory) {
|
| 6 |
+
if (typeof module === "object" && typeof module.exports === "object") {
|
| 7 |
+
var v = factory(require, exports);
|
| 8 |
+
if (v !== undefined) module.exports = v;
|
| 9 |
+
}
|
| 10 |
+
else if (typeof define === "function" && define.amd) {
|
| 11 |
+
define(["require", "exports", "./htmlScanner", "../utils/arrays", "../htmlLanguageTypes"], factory);
|
| 12 |
+
}
|
| 13 |
+
})(function (require, exports) {
|
| 14 |
+
"use strict";
|
| 15 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 16 |
+
exports.HTMLParser = exports.Node = void 0;
|
| 17 |
+
const htmlScanner_1 = require("./htmlScanner");
|
| 18 |
+
const arrays_1 = require("../utils/arrays");
|
| 19 |
+
const htmlLanguageTypes_1 = require("../htmlLanguageTypes");
|
| 20 |
+
class Node {
|
| 21 |
+
get attributeNames() { return this.attributes ? Object.keys(this.attributes) : []; }
|
| 22 |
+
constructor(start, end, children, parent) {
|
| 23 |
+
this.start = start;
|
| 24 |
+
this.end = end;
|
| 25 |
+
this.children = children;
|
| 26 |
+
this.parent = parent;
|
| 27 |
+
this.closed = false;
|
| 28 |
+
}
|
| 29 |
+
isSameTag(tagInLowerCase) {
|
| 30 |
+
if (this.tag === undefined) {
|
| 31 |
+
return tagInLowerCase === undefined;
|
| 32 |
+
}
|
| 33 |
+
else {
|
| 34 |
+
return tagInLowerCase !== undefined && this.tag.length === tagInLowerCase.length && this.tag.toLowerCase() === tagInLowerCase;
|
| 35 |
+
}
|
| 36 |
+
}
|
| 37 |
+
get firstChild() { return this.children[0]; }
|
| 38 |
+
get lastChild() { return this.children.length ? this.children[this.children.length - 1] : void 0; }
|
| 39 |
+
findNodeBefore(offset) {
|
| 40 |
+
const idx = (0, arrays_1.findFirst)(this.children, c => offset <= c.start) - 1;
|
| 41 |
+
if (idx >= 0) {
|
| 42 |
+
const child = this.children[idx];
|
| 43 |
+
if (offset > child.start) {
|
| 44 |
+
if (offset < child.end) {
|
| 45 |
+
return child.findNodeBefore(offset);
|
| 46 |
+
}
|
| 47 |
+
const lastChild = child.lastChild;
|
| 48 |
+
if (lastChild && lastChild.end === child.end) {
|
| 49 |
+
return child.findNodeBefore(offset);
|
| 50 |
+
}
|
| 51 |
+
return child;
|
| 52 |
+
}
|
| 53 |
+
}
|
| 54 |
+
return this;
|
| 55 |
+
}
|
| 56 |
+
findNodeAt(offset) {
|
| 57 |
+
const idx = (0, arrays_1.findFirst)(this.children, c => offset <= c.start) - 1;
|
| 58 |
+
if (idx >= 0) {
|
| 59 |
+
const child = this.children[idx];
|
| 60 |
+
if (offset > child.start && offset <= child.end) {
|
| 61 |
+
return child.findNodeAt(offset);
|
| 62 |
+
}
|
| 63 |
+
}
|
| 64 |
+
return this;
|
| 65 |
+
}
|
| 66 |
+
}
|
| 67 |
+
exports.Node = Node;
|
| 68 |
+
class HTMLParser {
|
| 69 |
+
constructor(dataManager) {
|
| 70 |
+
this.dataManager = dataManager;
|
| 71 |
+
}
|
| 72 |
+
parseDocument(document) {
|
| 73 |
+
return this.parse(document.getText(), this.dataManager.getVoidElements(document.languageId));
|
| 74 |
+
}
|
| 75 |
+
parse(text, voidElements) {
|
| 76 |
+
const scanner = (0, htmlScanner_1.createScanner)(text, undefined, undefined, true);
|
| 77 |
+
const htmlDocument = new Node(0, text.length, [], void 0);
|
| 78 |
+
let curr = htmlDocument;
|
| 79 |
+
let endTagStart = -1;
|
| 80 |
+
let endTagName = undefined;
|
| 81 |
+
let pendingAttribute = null;
|
| 82 |
+
let token = scanner.scan();
|
| 83 |
+
while (token !== htmlLanguageTypes_1.TokenType.EOS) {
|
| 84 |
+
switch (token) {
|
| 85 |
+
case htmlLanguageTypes_1.TokenType.StartTagOpen:
|
| 86 |
+
const child = new Node(scanner.getTokenOffset(), text.length, [], curr);
|
| 87 |
+
curr.children.push(child);
|
| 88 |
+
curr = child;
|
| 89 |
+
break;
|
| 90 |
+
case htmlLanguageTypes_1.TokenType.StartTag:
|
| 91 |
+
curr.tag = scanner.getTokenText();
|
| 92 |
+
break;
|
| 93 |
+
case htmlLanguageTypes_1.TokenType.StartTagClose:
|
| 94 |
+
if (curr.parent) {
|
| 95 |
+
curr.end = scanner.getTokenEnd(); // might be later set to end tag position
|
| 96 |
+
if (scanner.getTokenLength()) {
|
| 97 |
+
curr.startTagEnd = scanner.getTokenEnd();
|
| 98 |
+
if (curr.tag && this.dataManager.isVoidElement(curr.tag, voidElements)) {
|
| 99 |
+
curr.closed = true;
|
| 100 |
+
curr = curr.parent;
|
| 101 |
+
}
|
| 102 |
+
}
|
| 103 |
+
else {
|
| 104 |
+
// pseudo close token from an incomplete start tag
|
| 105 |
+
curr = curr.parent;
|
| 106 |
+
}
|
| 107 |
+
}
|
| 108 |
+
break;
|
| 109 |
+
case htmlLanguageTypes_1.TokenType.StartTagSelfClose:
|
| 110 |
+
if (curr.parent) {
|
| 111 |
+
curr.closed = true;
|
| 112 |
+
curr.end = scanner.getTokenEnd();
|
| 113 |
+
curr.startTagEnd = scanner.getTokenEnd();
|
| 114 |
+
curr = curr.parent;
|
| 115 |
+
}
|
| 116 |
+
break;
|
| 117 |
+
case htmlLanguageTypes_1.TokenType.EndTagOpen:
|
| 118 |
+
endTagStart = scanner.getTokenOffset();
|
| 119 |
+
endTagName = undefined;
|
| 120 |
+
break;
|
| 121 |
+
case htmlLanguageTypes_1.TokenType.EndTag:
|
| 122 |
+
endTagName = scanner.getTokenText().toLowerCase();
|
| 123 |
+
break;
|
| 124 |
+
case htmlLanguageTypes_1.TokenType.EndTagClose:
|
| 125 |
+
let node = curr;
|
| 126 |
+
// see if we can find a matching tag
|
| 127 |
+
while (!node.isSameTag(endTagName) && node.parent) {
|
| 128 |
+
node = node.parent;
|
| 129 |
+
}
|
| 130 |
+
if (node.parent) {
|
| 131 |
+
while (curr !== node) {
|
| 132 |
+
curr.end = endTagStart;
|
| 133 |
+
curr.closed = false;
|
| 134 |
+
curr = curr.parent;
|
| 135 |
+
}
|
| 136 |
+
curr.closed = true;
|
| 137 |
+
curr.endTagStart = endTagStart;
|
| 138 |
+
curr.end = scanner.getTokenEnd();
|
| 139 |
+
curr = curr.parent;
|
| 140 |
+
}
|
| 141 |
+
break;
|
| 142 |
+
case htmlLanguageTypes_1.TokenType.AttributeName: {
|
| 143 |
+
pendingAttribute = scanner.getTokenText();
|
| 144 |
+
let attributes = curr.attributes;
|
| 145 |
+
if (!attributes) {
|
| 146 |
+
curr.attributes = attributes = {};
|
| 147 |
+
}
|
| 148 |
+
attributes[pendingAttribute] = null; // Support valueless attributes such as 'checked'
|
| 149 |
+
break;
|
| 150 |
+
}
|
| 151 |
+
case htmlLanguageTypes_1.TokenType.AttributeValue: {
|
| 152 |
+
const value = scanner.getTokenText();
|
| 153 |
+
const attributes = curr.attributes;
|
| 154 |
+
if (attributes && pendingAttribute) {
|
| 155 |
+
attributes[pendingAttribute] = value;
|
| 156 |
+
pendingAttribute = null;
|
| 157 |
+
}
|
| 158 |
+
break;
|
| 159 |
+
}
|
| 160 |
+
}
|
| 161 |
+
token = scanner.scan();
|
| 162 |
+
}
|
| 163 |
+
while (curr.parent) {
|
| 164 |
+
curr.end = text.length;
|
| 165 |
+
curr.closed = false;
|
| 166 |
+
curr = curr.parent;
|
| 167 |
+
}
|
| 168 |
+
return {
|
| 169 |
+
roots: htmlDocument.children,
|
| 170 |
+
findNodeBefore: htmlDocument.findNodeBefore.bind(htmlDocument),
|
| 171 |
+
findNodeAt: htmlDocument.findNodeAt.bind(htmlDocument)
|
| 172 |
+
};
|
| 173 |
+
}
|
| 174 |
+
}
|
| 175 |
+
exports.HTMLParser = HTMLParser;
|
| 176 |
+
});
|