Skip to content

Commit 0f63e4b

Browse files
authored
Update MagicPython.cson
1 parent ccec0d3 commit 0f63e4b

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

grammars/MagicPython.cson

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ repository:
3737
statement:
3838
patterns: [
3939
{
40-
include: "#import"
40+
include: "#importar"
4141
}
4242
{
4343
include: "#class-declaration"
@@ -278,8 +278,8 @@ repository:
278278
match: "\\b(?<!\\.)como\\b(?=.*[:\\\\])"
279279
}
280280
{
281-
name: "keyword.control.import.python"
282-
comment: "other legal use of `as` is in an import"
281+
name: "keyword.control.importar.python"
282+
comment: "other legal use of `as` is in an importar"
283283
match: "\\b(?<!\\.)como\\b"
284284
}
285285
{
@@ -609,7 +609,7 @@ repository:
609609
(?:
610610
(y | o | ~ | en | es) (?# 1)
611611
|
612-
(para | si | otro | aguardar | (?:ceder(?:\\s+from)?)) (?# 2)
612+
(para | si | otro | aguardar | (?:ceder(?:\\s+desde)?)) (?# 2)
613613
)
614614
(?!\\s*:)\\b
615615
@@ -1056,18 +1056,18 @@ repository:
10561056
"fstring-formatting-singe-brace":
10571057
name: "invalid.illegal.brace.python"
10581058
match: "(}(?!}))"
1059-
import:
1059+
importar:
10601060
comment: '''
1061-
Import statements used to correctly mark `from`, `import`, and `as`
1061+
importar statements used to correctly mark `from`, `importar`, and `as`
10621062
10631063
'''
10641064
patterns: [
10651065
{
1066-
begin: "\\b(?<!\\.)(from)\\b(?=.+import)"
1067-
end: "$|(?=import)"
1066+
begin: "\\b(?<!\\.)(desde)\\b(?=.+importar)"
1067+
end: "$|(?=importar)"
10681068
beginCaptures:
10691069
"1":
1070-
name: "keyword.control.import.python"
1070+
name: "keyword.control.importar.python"
10711071
patterns: [
10721072
{
10731073
name: "punctuation.separator.period.python"
@@ -1079,15 +1079,15 @@ repository:
10791079
]
10801080
}
10811081
{
1082-
begin: "\\b(?<!\\.)(import)\\b"
1082+
begin: "\\b(?<!\\.)(importar)\\b"
10831083
end: "$"
10841084
beginCaptures:
10851085
"1":
1086-
name: "keyword.control.import.python"
1086+
name: "keyword.control.importar.python"
10871087
patterns: [
10881088
{
1089-
name: "keyword.control.import.python"
1090-
match: "\\b(?<!\\.)as\\b"
1089+
name: "keyword.control.importar.python"
1090+
match: "\\b(?<!\\.)como\\b"
10911091
}
10921092
{
10931093
include: "#expression"
@@ -1166,7 +1166,7 @@ repository:
11661166
}
11671167
{
11681168
name: "support.type.metaclass.python"
1169-
match: "\\bmetaclass\\b"
1169+
match: "\\bmetaclase\\b"
11701170
}
11711171
{
11721172
include: "#illegal-names"
@@ -1800,7 +1800,7 @@ repository:
18001800
| TuberíaRota | ProcessoInfantil
18011801
| (Conexión (Abortada | Rechazada | Reiniciada)?)
18021802
| EOF | MedioAmbiente | ArchivoExiste | ArchivoNoEncontrado
1803-
| FlotatingPoint | IO | Importación | Muesca | Índice | Interrumpido
1803+
| FlotatingPoint | IO | importaración | Muesca | Índice | Interrumpido
18041804
| EsADirectorio | NoADirectorio | Permiso | ProcesoBùsqueda
18051805
| SeAcabóElTiempo
18061806
| Clave | Búsqueda | Memoria | Nombre | NoSeHaImplementado | OS | Desbordamiento
@@ -1809,7 +1809,7 @@ repository:
18091809
| Valor | Windows | CeroDivisión | MóduloNoEncontrado
18101810
) Error
18111811
|
1812-
((Pendiente)?Deprecation | TiempoDeEjecución | Sintaxis | Usario | Futuro | Importar
1812+
((Pendiente)?Deprecation | TiempoDeEjecución | Sintaxis | Usario | Futuro | importar
18131813
| Unicode | Bytes | Recurso
18141814
)? Aviso
18151815
|
@@ -1949,7 +1949,7 @@ repository:
19491949
"1":
19501950
name: "keyword.control.flow.python"
19511951
"2":
1952-
name: "keyword.control.import.python"
1952+
name: "keyword.control.importar.python"
19531953
"special-variables":
19541954
match: '''
19551955
(?x)
@@ -1994,7 +1994,7 @@ repository:
19941994
"illegal-object-name":
19951995
comment: "It's illegal to name class or function \"True\""
19961996
name: "keyword.illegal.name.python"
1997-
match: "\\b(True|False|None)\\b"
1997+
match: "\\b(Verdadero|Falso|Ningún)\\b"
19981998
"illegal-anno":
19991999
name: "invalid.illegal.annotation.python"
20002000
match: "->"

0 commit comments

Comments
 (0)