Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArvidsson committed Dec 22, 2024
1 parent d855470 commit 0322347
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions lang/java/java.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,9 @@
MATH_EQUAL=" == ",
MATH_NOT_EQUAL=" != ",
MATH_GREATER_THAN=" > ",
MATH_GREATER_THAN_OR_EQUAL_TO=" >= ",
MATH_GREATER_THAN_OR_EQUAL=" >= ",
MATH_LESS_THAN=" < ",
MATH_LESS_THAN_OR_EQUAL_TO=" <= ",
MATH_LESS_THAN_OR_EQUAL=" <= ",
MATH_AND=" && ",
MATH_OR=" || ",
MATH_NOT="!",
Expand Down
8 changes: 4 additions & 4 deletions lang/tags/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ class Operators(TypedDict):
MATH_EQUAL: NotRequired[Operator]
MATH_NOT_EQUAL: NotRequired[Operator]
MATH_GREATER_THAN: NotRequired[Operator]
MATH_GREATER_THAN_OR_EQUAL_TO: NotRequired[Operator]
MATH_GREATER_THAN_OR_EQUAL: NotRequired[Operator]
MATH_LESS_THAN: NotRequired[Operator]
MATH_LESS_THAN_OR_EQUAL_TO: NotRequired[Operator]
MATH_LESS_THAN_OR_EQUAL: NotRequired[Operator]
MATH_AND: NotRequired[Operator]
MATH_OR: NotRequired[Operator]
MATH_NOT: NotRequired[Operator]
Expand Down Expand Up @@ -177,11 +177,11 @@ def operators_fallback(id: str) -> None:
actions.user.code_operator_not_equal()
case "MATH_GREATER_THAN":
actions.user.code_operator_greater_than()
case "MATH_GREATER_THAN_OR_EQUAL_TO":
case "MATH_GREATER_THAN_OR_EQUAL":
actions.user.code_operator_greater_than_or_equal_to()
case "MATH_LESS_THAN":
actions.user.code_operator_less_than()
case "MATH_LESS_THAN_OR_EQUAL_TO":
case "MATH_LESS_THAN_OR_EQUAL":
actions.user.code_operator_less_than_or_equal_to()
case "MATH_AND":
actions.user.code_operator_and()
Expand Down
2 changes: 1 addition & 1 deletion lang/tags/operators_array.talon-list
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ list: user.code_operators_array
tag: user.code_operators_array
-

subscript: SUBSCRIPT
subscript: SUBSCRIPT
14 changes: 7 additions & 7 deletions lang/tags/operators_assignment.talon-list
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ tag: user.code_operators_assignment
-

# Assignment
equals: ASSIGNMENT
or equals: ASSIGNMENT_OR
equals: ASSIGNMENT
or equals: ASSIGNMENT_OR

# Combined computation and assignment
minus equals: ASSIGNMENT_SUBTRACTION
plus equals: ASSIGNMENT_ADDITION
times equals: ASSIGNMENT_MULTIPLICATION
minus equals: ASSIGNMENT_SUBTRACTION
plus equals: ASSIGNMENT_ADDITION
times equals: ASSIGNMENT_MULTIPLICATION
divide equals: ASSIGNMENT_DIVISION
mod equals: ASSIGNMENT_MODULO
increment: ASSIGNMENT_INCREMENT
mod equals: ASSIGNMENT_MODULO
increment: ASSIGNMENT_INCREMENT

# Bitwise operators
bitwise and equals: ASSIGNMENT_BITWISE_AND
Expand Down
6 changes: 3 additions & 3 deletions lang/tags/operators_bitwise.talon-list
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ list: user.code_operators_bitwise
tag: user.code_operators_bitwise
-

bitwise and: BITWISE_AND
bitwise or: BITWISE_OR
bitwise not: BITWISE_NOT
bitwise and: BITWISE_AND
bitwise or: BITWISE_OR
bitwise not: BITWISE_NOT

bitwise ex or: BITWISE_EXCLUSIVE_OR
bitwise left shift: BITWISE_LEFT_SHIFT
Expand Down
2 changes: 1 addition & 1 deletion lang/tags/operators_lambda.talon-list
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ list: user.code_operators_lambda
tag: user.code_operators_lambda
-

lambda: LAMBDA
lambda: LAMBDA
34 changes: 17 additions & 17 deletions lang/tags/operators_math.talon-list
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@ tag: user.code_operators_math
-

# Math operators
minus: MATH_SUBTRACT
plus: MATH_ADD
times: MATH_MULTIPLY
divide: MATH_DIVIDE
mod: MATH_MODULO
power: MATH_EXPONENT
minus: MATH_SUBTRACT
plus: MATH_ADD
times: MATH_MULTIPLY
divide: MATH_DIVIDE
mod: MATH_MODULO
power: MATH_EXPONENT

# Comparison operators
equal: MATH_EQUAL
not equal: MATH_NOT_EQUAL
greater: MATH_GREATER_THAN
less: MATH_LESS_THAN
greater or equal: MATH_GREATER_THAN_OR_EQUAL_TO
less or equal: MATH_LESS_THAN_OR_EQUAL_TO
equal: MATH_EQUAL
not equal: MATH_NOT_EQUAL
greater: MATH_GREATER_THAN
less: MATH_LESS_THAN
greater or equal: MATH_GREATER_THAN_OR_EQUAL
less or equal: MATH_LESS_THAN_OR_EQUAL

# logical operators
and: MATH_AND
or: MATH_OR
not: MATH_NOT
and: MATH_AND
or: MATH_OR
not: MATH_NOT

# set operators
in: MATH_IN
not in: MATH_NOT_IN
in: MATH_IN
not in: MATH_NOT_IN
6 changes: 3 additions & 3 deletions lang/tags/operators_pointer.talon-list
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ list: user.code_operators_pointer
tag: user.code_operators_pointer
-

dereference: POINTER_INDIRECTION
address of: POINTER_ADDRESS_OF
arrow: POINTER_STRUCTURE_DEREFERENCE
dereference: POINTER_INDIRECTION
address of: POINTER_ADDRESS_OF
arrow: POINTER_STRUCTURE_DEREFERENCE

0 comments on commit 0322347

Please sign in to comment.