Skip to content

Commit

Permalink
spell check
Browse files Browse the repository at this point in the history
  • Loading branch information
APerricone committed Mar 6, 2021
1 parent ba85f98 commit a7b2f2f
Show file tree
Hide file tree
Showing 7 changed files with 126 additions and 120 deletions.
7 changes: 6 additions & 1 deletion client/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// Inserire le impostazioni in questo file per sovrascrivere quelle utente e predefinite.
{
"svg.preview.background": "black"
"svg.preview.background": "black",
"cSpell.words": [
"aperricone",
"harbourdoc",
"hbmk"
]
}
4 changes: 2 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"activationEvents": [
"onLanguage:harbour",
"onCommand:harbour.getdbgcode",
"onCommand:harbour.getDbgCode",
"workspaceContains:**/*.prg"
],
"engines": {
Expand Down Expand Up @@ -52,7 +52,7 @@
],
"commands": [
{
"command": "harbour.getdbgcode",
"command": "harbour.getDbgCode",
"title": "%harbour.dbgCodeCmd%"
}
],
Expand Down
2 changes: 1 addition & 1 deletion client/src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function activate(context) {
var cl = new client.LanguageClient('HarbourServer', 'Harbour Server', serverOptions, clientOptions);
cl.registerProposedFeatures()
context.subscriptions.push(cl.start());
vscode.commands.registerCommand('harbour.getdbgcode', GetDbgCode);
vscode.commands.registerCommand('harbour.getDbgCode', GetDbgCode);
vscode.commands.registerCommand("harbour.debugList", DebugList)
//vscode.languages.registerFoldingRangeProvider(['harbour'], new decorator.HBProvider());
decorator.activate(context,cl);
Expand Down
12 changes: 6 additions & 6 deletions client/src/taskProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class HBMK2Terminal {
this.closeEvt = ()=>{};
this.tasks = [];
/** @type {boolean} indicates that this HBMK2Terminal is executing the setup shell or batch */
this.settingup = false;
this.settingUp = false;
this.env=process.env;
if(task.definition.options && task.definition.options.env) {
var extraEnv = task.definition.options.env;
Expand All @@ -224,7 +224,7 @@ class HBMK2Terminal {
this.unableToStart=true;
return;
}
this.settingup = true;
this.settingUp = true;
var cmd="setup"; //TODO: make unique
if(os.platform()=='win32') {
cmd+=".bat";
Expand Down Expand Up @@ -256,7 +256,7 @@ class HBMK2Terminal {
p1.on("exit", () => {
fs.unlink(cmd, ()=>{});
tc.env=env1;
tc.settingup = false;
tc.settingUp = false;
tc.start();
});
}
Expand Down Expand Up @@ -286,7 +286,7 @@ class HBMK2Terminal {
this.closeEvt();
return;
}
if(this.settingup){
if(this.settingUp){
this.write(localize("harbour.task.HBMK2.setup")+"\r\n");
return;
}
Expand Down Expand Up @@ -328,15 +328,15 @@ class HBMK2Terminal {
}

class HBMK2Task {
getValidTask(name,input, definition, problemMathes) {
getValidTask(name,input, definition, problemMatches) {
var retTask = new vscode.Task({
"type": "HBMK2",
"input": input
//"c-type": "compact"
}, vscode.TaskScope.Workspace, name ,"HBMK2");
retTask.definition = definition;
retTask.execution = new vscode.CustomExecution(getTerminalFn(retTask));
if(!Array.isArray(problemMathes) || problemMathes.length==0 )
if(!Array.isArray(problemMatches) || problemMatches.length==0 )
retTask.problemMatchers = ["$harbour","$msCompile"];
return retTask;
}
Expand Down
44 changes: 22 additions & 22 deletions client/syntaxes/harbour.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
},{
"include": "#variable-declaration"
},{
"include": "#inline-staments"
"include": "#inline-statements"
}
],
"repository": {
"inline-staments": {
"inline-statements": {
"patterns": [{
"include": "#continue-expression"
},
Expand Down Expand Up @@ -74,12 +74,12 @@
}
]
},
"function-staments": {
"function-statements": {
"patterns": [{
"include": "#variable-declaration"
},
{
"include": "#inline-staments"
"include": "#inline-statements"
}
]
},
Expand All @@ -90,7 +90,7 @@
},
{
"match": "(?i)\\b0x[0-9a-f]+\\b",
"name": "constant.numeric.exadecimal.harbour"
"name": "constant.numeric.hexadecimal.harbour"
}
]
},
Expand Down Expand Up @@ -319,12 +319,12 @@
"include": "#variable-initializer"
},
{
"include": "#inline-staments"
"include": "#inline-statements"
}
]
},
{
"include": "#inline-staments"
"include": "#inline-statements"
}
]
},
Expand Down Expand Up @@ -686,7 +686,7 @@
},
"end": "(?i)(?m:$)|(?=\\b(?:exported|visible|protected|hidden|readonly|ro|persistent|property|sync|shared)\\b)",
"patterns": [{
"include": "#inline-staments"
"include": "#inline-statements"
}]
},
{
Expand Down Expand Up @@ -729,7 +729,7 @@
"include": "#comments"
},
{
"include": "#function-staments"
"include": "#function-statements"
}
]
}]
Expand Down Expand Up @@ -784,7 +784,7 @@
},
"end": "(?m:$)",
"patterns": [{
"include": "#inline-staments"
"include": "#inline-statements"
}]
},
{
Expand Down Expand Up @@ -864,7 +864,7 @@
"include": "#codeblock-parameters"
},
{
"include": "#inline-staments"
"include": "#inline-statements"
}
]
},
Expand All @@ -891,7 +891,7 @@
"name": "punctuation.separator.array"
},
{
"include": "#inline-staments"
"include": "#inline-statements"
}
]
},
Expand Down Expand Up @@ -923,7 +923,7 @@
"include": "#punctuation-comma"
},
{
"include": "#inline-staments"
"include": "#inline-statements"
}
]
},
Expand All @@ -949,7 +949,7 @@
"include": "#punctuation-comma"
},
{
"include": "#inline-staments"
"include": "#inline-statements"
}
]
},
Expand All @@ -976,7 +976,7 @@
"include": "#punctuation-comma"
},
{
"include": "#inline-staments"
"include": "#inline-statements"
}
]
},
Expand All @@ -994,7 +994,7 @@
}
},
"patterns": [{
"include": "#inline-staments"
"include": "#inline-statements"
}]
},
"macro-var": {
Expand Down Expand Up @@ -1046,7 +1046,7 @@
}
},
"patterns": [{
"include": "#inline-staments"
"include": "#inline-statements"
}]
},
"keywords": {
Expand Down Expand Up @@ -1291,7 +1291,7 @@
"end": "(?=\\||(?m:$))",
"patterns": [
{
"include": "#inline-staments"
"include": "#inline-statements"
}
]
}
Expand Down Expand Up @@ -1343,7 +1343,7 @@
"end": "(?=\\||(?m:$))",
"patterns": [
{
"include": "#inline-staments"
"include": "#inline-statements"
},
{
"include": "#variable-name"
Expand Down Expand Up @@ -1398,7 +1398,7 @@
"end": "(?=\\||(?m:$))",
"patterns": [
{
"include": "#inline-staments"
"include": "#inline-statements"
}
]
},
Expand Down Expand Up @@ -1770,7 +1770,7 @@
},
"patterns": [
{
"include": "#inline-staments"
"include": "#inline-statements"
}
]
},
Expand Down Expand Up @@ -1798,7 +1798,7 @@
},
"patterns": [
{
"include": "#inline-staments"
"include": "#inline-statements"
}
]
},
Expand Down
Loading

0 comments on commit a7b2f2f

Please sign in to comment.