Fixed comment highlighting in AppleScript highlighter.
This commit is contained in:
parent
77ec0af40a
commit
066180b248
2 changed files with 5 additions and 24 deletions
|
|
@ -28,10 +28,6 @@
|
||||||
*
|
*
|
||||||
* ***** END LICENSE BLOCK ***** */
|
* ***** END LICENSE BLOCK ***** */
|
||||||
|
|
||||||
/*
|
|
||||||
THIS FILE WAS AUTOGENERATED BY mode.tmpl.js
|
|
||||||
*/
|
|
||||||
|
|
||||||
define(function(require, exports, module) {
|
define(function(require, exports, module) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
@ -49,8 +45,8 @@ var Mode = function() {
|
||||||
oop.inherits(Mode, TextMode);
|
oop.inherits(Mode, TextMode);
|
||||||
|
|
||||||
(function() {
|
(function() {
|
||||||
this.lineCommentStart = "//";
|
this.lineCommentStart = "--";
|
||||||
this.blockComment = {start: "/*", end: "*/"};
|
this.blockComment = {start: "(*", end: "*)"};
|
||||||
// Extra logic goes here.
|
// Extra logic goes here.
|
||||||
}).call(Mode.prototype);
|
}).call(Mode.prototype);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,23 +28,10 @@
|
||||||
*
|
*
|
||||||
* ***** END LICENSE BLOCK ***** */
|
* ***** END LICENSE BLOCK ***** */
|
||||||
|
|
||||||
/* THIS FILE WAS AUTOGENERATED FROM AppleScript.tmLanguage (UUID: 777CF925-14B9-428E-B07B-17FAAB8FA27E) */
|
|
||||||
/****************************************************************
|
|
||||||
* IT MIGHT NOT BE PERFECT, PARTICULARLY: *
|
|
||||||
* IN DECIDING STATES TO TRANSITION TO, *
|
|
||||||
* IGNORING WHITESPACE, *
|
|
||||||
* IGNORING GROUPS WITH ?:, *
|
|
||||||
* EXTENDING EXISTING MODES, *
|
|
||||||
* GATHERING KEYWORDS, OR *
|
|
||||||
* DECIDING WHEN TO USE PUSH. *
|
|
||||||
* ...But it's a good start from an existing *.tmlanguage file. *
|
|
||||||
****************************************************************/
|
|
||||||
|
|
||||||
define(function(require, exports, module) {
|
define(function(require, exports, module) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var oop = require("../lib/oop");
|
var oop = require("../lib/oop");
|
||||||
var DocCommentHighlightRules = require("./doc_comment_highlight_rules").DocCommentHighlightRules;
|
|
||||||
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
|
||||||
|
|
||||||
var AppleScriptHighlightRules = function() {
|
var AppleScriptHighlightRules = function() {
|
||||||
|
|
@ -91,7 +78,6 @@ var AppleScriptHighlightRules = function() {
|
||||||
token: "comment",
|
token: "comment",
|
||||||
regex: "--.*$"
|
regex: "--.*$"
|
||||||
},
|
},
|
||||||
DocCommentHighlightRules.getStartRule("doc-start"),
|
|
||||||
{
|
{
|
||||||
token : "comment", // multi line comment
|
token : "comment", // multi line comment
|
||||||
regex : "\\(\\*",
|
regex : "\\(\\*",
|
||||||
|
|
@ -136,11 +122,10 @@ var AppleScriptHighlightRules = function() {
|
||||||
"comment": [
|
"comment": [
|
||||||
{
|
{
|
||||||
token: "comment", // closing comment
|
token: "comment", // closing comment
|
||||||
regex: ".*?\\*\\)",
|
regex: "\\*\\)",
|
||||||
next: "start"
|
next: "start"
|
||||||
}, {
|
}, {
|
||||||
token: "comment", // comment spanning whole line
|
defaultToken: "comment"
|
||||||
regex: ".+"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue