diff --git a/LATINO.YAML-tmLanguage b/LATINO.YAML-tmLanguage index d50b04e..8d42f1a 100644 --- a/LATINO.YAML-tmLanguage +++ b/LATINO.YAML-tmLanguage @@ -30,18 +30,10 @@ patterns: "1": {name: comment.block.end.lat } - comment: Comillas - name: string.quoted.double.lat - begin: '"' - end: '"' + name: string.quoted.lat + match: '([\'\"])(?:(?!\1|\\).|\\.)*\1' captures: - '1': {name: string.quoted.double.lat} - -- comment: Comillas - name: string.quoted.single.lat - begin: "'" - end: "'" - captures: - '1': {name: string.quoted.single.lat} + '1': {name: string.quoted.lat} # INICIO CONSTANTES - comment: Constantes @@ -65,7 +57,7 @@ patterns: # INICIO SENTENCIAS DE CONTROL - comment: Sentencias de control name: keyword.control.lat - match: '\b(si|sino|fin|mientras|desde|hasta|elegir|caso|defecto|hacer|cuando|retorno|defecto)\b' + match: '\b(si|osi|sino|fin|mientras|desde|hasta|elegir|caso|defecto|hacer|cuando|retorno|defecto)\b' captures: '1': {name: keyword.control.lat} diff --git a/LATINO.tmLanguage b/LATINO.tmLanguage index 5e72682..b39d6cd 100644 --- a/LATINO.tmLanguage +++ b/LATINO.tmLanguage @@ -61,40 +61,20 @@ comment.block.end.latino - begin - " captures - - 1 - - name - string.quoted.double.lat - - - comment - Comillas - end - " - name - string.quoted.double.lat - - - begin - ' - captures - - 1 - - name - string.quoted.single.lat - - - comment - Comillas - end - ' - name - string.quoted.single.lat + + 1 + + name + string.quoted.lat + + + comment + Comillas + match + (['"])(?:(?!\1|\\).|\\.)*\1 + name + string.quoted.lat captures @@ -156,7 +136,7 @@ comment Sentencias de control match - \b(si|sino|fin|mientras|desde|hasta|elegir|caso|defecto|hacer|cuando|retorno|defecto)\b + \b(si|osi|sino|fin|mientras|desde|hasta|elegir|caso|defecto|hacer|cuando|retorno|defecto)\b name keyword.control.lat