mirror of
https://github.com/MatthewCallis/language-65asm.git
synced 2025-04-07 19:37:05 +00:00
Fix hex numbers with suffix 'h'
This commit is contained in:
parent
52375b7e6e
commit
28079336e1
@ -49,7 +49,7 @@ repository:
|
||||
}
|
||||
# hex, suffixed with h(h)
|
||||
{
|
||||
match: '-?([0-9]+)h'
|
||||
match: '-?([a-fA-F0-9]+)h'
|
||||
name: 'constant.numeric.hex.65816-generic'
|
||||
}
|
||||
# binary
|
||||
|
@ -49,7 +49,7 @@ repository:
|
||||
}
|
||||
# hex, suffixed with h(h)
|
||||
{
|
||||
match: '-?([0-9]+)h'
|
||||
match: '-?([a-fA-F0-9]+)h'
|
||||
name: 'constant.numeric.hex.65c02-generic'
|
||||
}
|
||||
# binary
|
||||
|
@ -24,6 +24,7 @@ repository:
|
||||
# symbols
|
||||
symbols:
|
||||
patterns: [
|
||||
# strings
|
||||
{
|
||||
begin: '"'
|
||||
beginCaptures:
|
||||
@ -35,19 +36,19 @@ repository:
|
||||
name: 'punctuation.definition.string.end.cc65-directives'
|
||||
name: 'string.quoted.double.assembly.cc65-directives'
|
||||
}
|
||||
# absolut address/number
|
||||
# absolut addressing/numbers
|
||||
{
|
||||
match: '\\#(\'.\'|[^\\s\']+)'
|
||||
name: 'constant.numeric.hex.cc65-directives'
|
||||
}
|
||||
# hex, prefixed with ampersand($)
|
||||
# hex, prefixed with dollar sign($)
|
||||
{
|
||||
match: '-?\\$[A-Fa-f0-9]+'
|
||||
match: '-?\\$[a-fA-F0-9]+'
|
||||
name: 'constant.numeric.hex.cc65-directives'
|
||||
}
|
||||
# hex, suffixed with h(h)
|
||||
{
|
||||
match: '-?([0-9]+)h'
|
||||
match: '-?\\b([a-fA-F0-9]+)h'
|
||||
name: 'constant.numeric.hex.cc65-directives'
|
||||
}
|
||||
# binary
|
||||
|
@ -36,19 +36,19 @@ repository:
|
||||
name: 'punctuation.definition.string.end.wdc-toolchain'
|
||||
name: 'string.quoted.double.assembly.wdc-toolchain'
|
||||
}
|
||||
# absolut addressing/numbering
|
||||
# absolut addressing/numbers
|
||||
{
|
||||
match: '\\#(\'.\'|[^\\s\']+)'
|
||||
name: 'constant.numeric.hex.wdc-toolchain'
|
||||
}
|
||||
# hex, prefixed with ampersand($)
|
||||
# hex, prefixed with dollar sign($)
|
||||
{
|
||||
match: '-?\\$[A-Fa-f0-9]+'
|
||||
match: '-?\\$\\b[a-fA-F0-9]+'
|
||||
name: 'constant.numeric.hex.wdc-toolchain'
|
||||
}
|
||||
# hex, suffixed with h(h)
|
||||
{
|
||||
match: '-?([0-9]+)h'
|
||||
match: '-?\\b([a-fA-F0-9]+)h'
|
||||
name: 'constant.numeric.hex.wdc-toolchain'
|
||||
}
|
||||
# binary prefixed with %
|
||||
@ -63,7 +63,7 @@ repository:
|
||||
}
|
||||
# octal and decimal
|
||||
{
|
||||
match: '\\b([0-9]+(d|o|q)?)\\b'
|
||||
match: '\\b([0-9]+[doq]?)\\b'
|
||||
name: 'constant.numeric.decimal.wdc-toolchain'
|
||||
}
|
||||
]
|
||||
@ -73,7 +73,7 @@ repository:
|
||||
patterns: [
|
||||
# File and Symbol control
|
||||
{
|
||||
match: '\\b(?i:append|include|insert|end(s|mod)?|exit|module|section|org|origin|equ(al)?|gequ|defl|set|var|extern(al|s)?|xref|globals?|public|xdef|message|messg|efunc|incdebug)\\b'
|
||||
match: '\\b(?i:append|include|insert|end(s|mod)?|exit|module|section|ref_only|org|origin|equ(al)?|gequ|defl|set|var|extern(al|s)?|xref|globals?|public|xdef|message|messg|efunc|incdebug)\\b'
|
||||
name: 'support.function.pseudo.wdc-toolchain'
|
||||
}
|
||||
# Parsing control
|
||||
@ -108,7 +108,7 @@ repository:
|
||||
}
|
||||
# Operators II
|
||||
{
|
||||
match: '\\b(?i:and|not|mod|sh[lr]|x?or|eq|u?[gl]t)\\b'
|
||||
match: '\\.\\b(?i:and|not|mod|sh[lr]|x?or|eq|u?[gl]t)\\b\\.'
|
||||
name: 'keyword.operator.wdc-toolchain'
|
||||
}
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user