Skip to content

Commit

Permalink
Update python tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
flbulgarelli committed Mar 13, 2023
1 parent 26189d1 commit be40ca2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gem/spec/i18n_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ def expectation(binding, inspection)
it { expect(expectation('foo', 'Uses').translate).to eq('<code>foo</code> debe delegar') }
it { expect(expectation('foo', 'Delegates').translate).to eq('<code>foo</code> debe delegar') }
it { expect(expectation('foo', 'UsesForall').translate :Prolog).to eq('<code>foo</code> debe utilizar <code>forall</code>') }
it { expect(expectation('foo', 'UsesForeach').translate :Python).to eq('<code>foo</code> debe usar <code>for..in</code>') }
it { expect(expectation('foo', 'UsesForeach').translate :JavaScript).to eq('<code>foo</code> debe usar <code>for..of</code>') }

it { expect(expectation('foo', 'Not:Uses:=baz').translate).to eq('<code>foo</code> no debe utilizar <code>baz</code>') }
it { expect(expectation('foo', 'Not:Uses:~baz').translate).to eq('<code>foo</code> no debe delegar en algo parecido a <code>baz</code>') }
Expand Down
2 changes: 2 additions & 0 deletions tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ JavaScript:
keywords:
<<: *common_keywords
Self: 'this'
ForEach: 'for..of'
operators:
<<: *common_operators
Size:
Expand All @@ -144,6 +145,7 @@ Python:
'Null': 'None'
'True': 'True'
Self: 'self'
ForEach: 'for..in'
operators:
<<: *common_operators
NotEqual:
Expand Down

0 comments on commit be40ca2

Please sign in to comment.