Skip to content

Commit

Permalink
Release 0.2.1
Browse files Browse the repository at this point in the history
- changed README
- fixes #1
- see changelog for detail
  • Loading branch information
babyraging committed Apr 29, 2020
1 parent f169e5b commit 51103ee
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 13 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@

## UnReleased

## Release

## 0.2.1
### Added
- Added support for initial state scope (lex)

### Changed
- Now uses a parser to parse the %union types instead of regex (yacc)
- Modified README.md

### Bug fixes
- Fixed wrong string highlight when quotes are escaped (lex)
- Fixed wrong string highlight when quotes are escaped. Issue #1 (lex)
- Fixed wrong type detection in the %union scope (yacc)
- Fixed an hover issue when the non-terminal name is the same as a typename (yacc)

## Release

## 0.2.0 27/04/2020
### Added
- Added lex/yacc parsers and language services
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ You can find more previews here [previews](images/README.md).

Since 1.43.0 VSCode enabled a new feature called Semantic Highlighting, this extension supports it.

By default, only the built-in themes has semantic highlighting enabled, so if you are using a 3rd party theme for example [Dracula](https://github.com/dracula/visual-studio-code/) which doesn't support the semantic coloring yet, you have to add these lines to your `settings.json` file to have the feature enabled.
By default, only the built-in themes has semantic highlighting enabled, so if you are using a 3rd party theme that doesn't support the semantic coloring yet, you have to add these lines to your `settings.json` file to have the feature enabled.
```json
"editor.tokenColorCustomizations": {
"[name of the theme]": {
Expand Down
3 changes: 0 additions & 3 deletions src/documentCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ export function CreateDocumentCache<T>(maxEntries: number, cleanupIntervalTimeIn
return languageModelInfo.languageModel;
}

const t0 = Date.now();
const languageModel = parse(document);
const t1 = Date.now();
console.log(`Parsing time ${t1 - t0}`);
languageModels[document.uri.toString()] = { languageModel, version, languageId, cTime: Date.now() };
if (!languageModelInfo) {
nModels++;
Expand Down
1 change: 0 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export function activate(context: vscode.ExtensionContext) {
return { isIncomplete: true, items: [] };
}
const doComplete = mode.doComplete!;
console.log('complete')
return doComplete(document, position);
}, null, `Error while computing completion for ${document.uri.toString()}`, token);
}
Expand Down
1 change: 0 additions & 1 deletion src/languages/parser/lexParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ export function parse(text: string, state: ParserState = ParserState.WaitingDecl
code.end += offset;
document.embedded.push(code);
});
console.log(recursive);
}
break;
case TokenType.Divider:
Expand Down
8 changes: 4 additions & 4 deletions syntaxes/lex.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@
"include": "#comments"
},
{
"include": "#strings"
"include": "#brackets"
},
{
"include": "#brackets"
"include": "#strings"
},
{
"include": "#block"
Expand Down Expand Up @@ -289,11 +289,11 @@
},
"brackets": {
"name":"entity.name.function.lex",
"match": "(?<=[^\\\\]|^)\\[(?:[^\\[\\]\\\n]|\\.)*\\]"
"match": "(?<=[^\\\\]|^)\\[(?:[^\\[\\]]|\\\\.)*\\]"
},
"strings": {
"name": "string.quoted.double.lex",
"match": "(?<=[^\\\\]|^)\"(?:[^\"\\\\\\n]|\\\\.)*\""
"match": "(?<=[^\\\\]|^)\"(?:[^\"\\\\]|\\\\.)*\""
},
"predefined": {
"name": "keyword.lex",
Expand Down

0 comments on commit 51103ee

Please sign in to comment.