Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
loicknuchel committed Nov 25, 2024
1 parent d0b8290 commit dc36eae
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extensions/vscode-aml/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

This Visual Studio Code extension provides language support for [AML](https://azimutt.app/aml), an easy DSL to design database schemas.

![AML in VS Code](assets/screenshot.png)
![AML in VS Code](/extensions/vscode-aml/assets/screenshot.png)


## Features
Expand Down
1 change: 0 additions & 1 deletion extensions/vscode-aml/src/web/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ async function convertAmlToDialect(editor: TextEditor): Promise<void> {
}

function previewAml(editor: TextEditor, context: ExtensionContext) {
vscode.window.showInformationMessage('previewAml called')
if (editor.document.languageId !== 'aml') {
vscode.window.showErrorMessage('Needs AML file to preview it.')
return
Expand Down
2 changes: 1 addition & 1 deletion extensions/vscode-aml/syntaxes/aml.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{"include": "#comment"}
],
"repository": {
"entity": {"patterns": [{"name": "entity.name.type.class.aml", "match": "^[a-zA-Z_][a-zA-Z0-9_#]*"}]},
"entity": {"patterns": [{"name": "entity.name.type.class.aml", "match": "^([a-zA-Z_][a-zA-Z0-9_#]*\\.)?([a-zA-Z_][a-zA-Z0-9_#]*\\.)?([a-zA-Z_][a-zA-Z0-9_#]*\\.)?[a-zA-Z_][a-zA-Z0-9_#]*"}]},
"attribute": {"patterns": [{"name": "variable.other.property.aml", "match": "^ +[a-zA-Z_][a-zA-Z0-9_#]*"}]},
"type": {"patterns": [{"name": "entity.name.type.aml", "match": "\\b(uuid|(var|n)?char2?|character( +varying)?|(tiny|medium|long|ci)?text|(tiny|small|big)?int(eger)?(\\d+)?|numeric|float|double( +precision)?|bool(ean)?|timestamp( +with(out)? +time +zone)?|date(time)?|time( +with(out)? +time +zone)?|interval|json|string|number)\\b"}]},
"keyword": {"patterns": [{"name": "keyword.control.aml", "match": "\\b(namespace|nullable|pk|index|unique|check|fk|rel|type)\\b"}]},
Expand Down

0 comments on commit dc36eae

Please sign in to comment.