Skip to content

Commit fd8067b

Browse files
committed
[java] Javadoc Syntax highlighting. Fixes microsoft#15527
1 parent ebb58dc commit fd8067b

5 files changed

Lines changed: 487 additions & 10 deletions

File tree

extensions/java/OSSREADME.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,24 @@
1919
"to the base-name name of the original file, and an extension of txt, html, or similar. For example",
2020
"\"tidy\" is accompanied by \"tidy-license.txt\"."
2121
]
22+
},{
23+
"name": "textmate/javadoc.tmbundle",
24+
"version": "0.0.0",
25+
"license": "TextMate Bundle License",
26+
"repositoryURL": "https://github.com/textmate/javadoc.tmbundle",
27+
"licenseDetail": [
28+
"Copyright (c) textmate-javadoc.tmbundle project authors",
29+
"",
30+
"If not otherwise specified (see below), files in this repository fall under the following license:",
31+
"",
32+
"Permission to copy, use, modify, sell and distribute this",
33+
"software is granted. This software is provided \"as is\" without",
34+
"express or implied warranty, and with no claim as to its",
35+
"suitability for any purpose.",
36+
"",
37+
"An exception is made for files in readable text which contain their own license information,",
38+
"or files where an accompanying file exists (in the same directory) with a \"-license\" suffix added",
39+
"to the base-name name of the original file, and an extension of txt, html, or similar. For example",
40+
"\"tidy\" is accompanied by \"tidy-license.txt\"."
41+
]
2242
}]

extensions/java/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"publisher": "vscode",
55
"engines": { "vscode": "*" },
66
"scripts": {
7-
"update-grammar": "node ../../build/npm/update-grammar.js textmate/java.tmbundle Syntaxes/Java.plist ./syntaxes/java.json"
7+
"update-grammar": "node ../../build/npm/update-grammar.js textmate/java.tmbundle Syntaxes/Java.plist ./syntaxes/java.tmLanguage.json && node ../../build/npm/update-grammar.js textmate/javadoc.tmbundle Syntaxes/JavaDoc.tmLanguage ./syntaxes/javadoc.tmLanguage.json"
88
},
99
"contributes": {
1010
"languages": [{
@@ -16,7 +16,10 @@
1616
"grammars": [{
1717
"language": "java",
1818
"scopeName": "source.java",
19-
"path": "./syntaxes/java.json"
19+
"path": "./syntaxes/java.tmLanguage.json"
20+
},{
21+
"scopeName": "text.html.javadoc",
22+
"path": "./syntaxes/javadoc.tmLanguage.json"
2023
}]
2124
}
2225
}
File renamed without changes.

0 commit comments

Comments
 (0)