fix: preenche configuração de LinConEs com comments, brackets, autoClosingPairs e surroundingPairs (#120) - #129
Open
kunaaaalcodes wants to merge 1 commit into
Conversation
…ngPairs e surroundingPairs (DesignLiquido#120)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolve #120
Problema
configuracoes/configuracao-lincones.jsoncontinha{}(objeto vazio). Consequência direta:O que foi feito
Populado o arquivo com as 4 seções obrigatórias de language configuration do VS Code:
comments.lineComment"--"--no início da linhacomments.blockComment["/*", "*/"]brackets{},[],()autoClosingPairs{},[],(),'',""surroundingPairs{},[],(),'',""Decisões técnicas
lineComment: "--": LinConEs é SQL-like; a gramática (lincones.tmLanguage.json) define--como comment line primário (comment.line.double-dash.lincones) e#como secundário. O VS Code só suporta umlineComment, então usamos--por ser o padrão SQL e o principal na gramática.blockComment: ["/*", "*/"]: A gramática definecomment.block.ccom/*/*/.{ "open", "close" }(objeto) em vez de arrays[open, close]por ser o formato moderno e mais legível, consistente com as configurações do VS Code core.Arquivos alterados
configuracoes/configuracao-lincones.json— única alteração, JSON puro, sem mudanças em TypeScript.Testes
Nenhum teste automatizado para language configuration JSON. Validado manualmente:
node -e "JSON.parse(...)"→ JSON válidoconfiguracao-foles.json(que já funciona em produção)