Skip to content

Commit 3324100

Browse files
committed
v0.1.2: generate more correct tmLanguage files
1 parent de5e21d commit 3324100

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

index.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -459,12 +459,12 @@ function buildCson(inName, outName) {
459459

460460
function buildPList(inName, outName) {
461461
var yamlSchema = readGrammarFile(inName, true),
462-
plistSource = plist.build(yamlSchema);
462+
plistSource = plist.build(yamlSchema),
463+
plistLines = plistSource.split('\n');
463464

464-
plistSource = '<!-- AUTOGENERATED FROM ' + inName + ' -->\n' +
465-
plistSource;
465+
plistLines.splice(3, 0, ' <!-- AUTOGENERATED FROM ' + inName + ' -->')
466466

467-
fs.writeFileSync(outName, plistSource + '\n');
467+
fs.writeFileSync(outName, plistLines.join('\n') + '\n');
468468
}
469469

470470

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "syntaxdev",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Unit testing framework for TextMate/Sublime/Atom syntaxes.",
55
"main": "index.js",
66
"author": "Yury Selivanov <[email protected]>",

0 commit comments

Comments
 (0)