Skip to content

Commit b7ea30c

Browse files
committed
A few minor syntax improvements.
1 parent f29ed35 commit b7ea30c

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

source/jquery.syntax.brush.go.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Syntax.register('go', function(brush) {
1313
/complex\d+/g,
1414
"byte",
1515
"uintptr",
16-
"string",
16+
"string"
1717
];
1818

1919
var operators = ["+", "&", "+=", "&=", "&&", "==", "!=", "-", "|", "-=", "|=", "||", "<", "<=", "*", "^", "*=", "^=", "<-", ">", ">=", "/", "<<", "/=", "<<=", "++", "=", ":=", ",", ";", "%", ">>", "%=", ">>=", "--", "!", "...", ".", ":", "&^", "&^="];

source/jquery.syntax.brush.ruby.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Syntax.register('ruby', function(brush) {
4040
matches: Syntax.extractMatches({
4141
brush: 'ruby',
4242
only: ['string']
43-
}),
43+
})
4444
});
4545

4646
// Regular expressions

source/jquery.syntax.core.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -576,9 +576,6 @@ Syntax.Match.prototype.insertAtEnd = function(match) {
576576
// Displacement: After
577577
return this._splice(i+1, match);
578578
}
579-
580-
// Could not find a suitable placement: this is probably an error.
581-
return null;
582579
} else {
583580
// Displacement: Contains [but currently no children]
584581
return this._splice(0, match);

0 commit comments

Comments
 (0)