Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

se arregla el coloreado de las comillas y se agrega la palabra clave osi #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions LATINO.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}

Expand Down
48 changes: 14 additions & 34 deletions LATINO.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -61,40 +61,20 @@
<string>comment.block.end.latino</string>
</dict>
<dict>
<key>begin</key>
<string>"</string>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>string.quoted.double.lat</string>
</dict>
</dict>
<key>comment</key>
<string>Comillas</string>
<key>end</key>
<string>"</string>
<key>name</key>
<string>string.quoted.double.lat</string>
</dict>
<dict>
<key>begin</key>
<string>'</string>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>string.quoted.single.lat</string>
</dict>
</dict>
<key>comment</key>
<string>Comillas</string>
<key>end</key>
<string>'</string>
<key>name</key>
<string>string.quoted.single.lat</string>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>string.quoted.lat</string>
</dict>
</dict>
<key>comment</key>
<string>Comillas</string>
<key>match</key>
<string>(['"])(?:(?!\1|\\).|\\.)*\1</string>
<key>name</key>
<string>string.quoted.lat</string>
</dict>
<dict>
<key>captures</key>
Expand Down Expand Up @@ -156,7 +136,7 @@
<key>comment</key>
<string>Sentencias de control</string>
<key>match</key>
<string>\b(si|sino|fin|mientras|desde|hasta|elegir|caso|defecto|hacer|cuando|retorno|defecto)\b</string>
<string>\b(si|osi|sino|fin|mientras|desde|hasta|elegir|caso|defecto|hacer|cuando|retorno|defecto)\b</string>
<key>name</key>
<string>keyword.control.lat</string>
</dict>
Expand Down