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

Updated Xojo Syntax #2000

Merged
merged 2 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -20,3 +20,4 @@ rouge-memory.tmp
# RVM/rbenv configuration files
.ruby-version
.ruby-gemset
.DS_Store
tancnle marked this conversation as resolved.
Show resolved Hide resolved
10 changes: 5 additions & 5 deletions lib/rouge/lexers/xojo.rb
Expand Up @@ -12,20 +12,20 @@ class Xojo < RegexLexer

keywords = %w(
addhandler aggregates array asc assigns attributes begin break
byref byval call case catch class const continue char ctype declare
byref byval call case catch class const continue color ctype declare
delegate dim do downto each else elseif end enum event exception
exit extends false finally for function global goto if
implements inherits interface lib loop mod module
new next nil object of optional paramarray
private property protected public raise raiseevent rect redim
removehandler return select shared soft static step sub super
then to true try until using uend uhile
then to true try until using wend while
)

keywords_type = %w(
boolean cfstringref cgfloat cstring curency date double int8 int16
int32 int64 integer ostype pstring ptr short single
single string structure variant uinteger uint8 uint16 uint32 uint64
boolean byte cfstringref cgfloat cstring currency date datetime double int8 int16
int32 int64 integer ostype pair pstring ptr short single
string structure variant uinteger uint8 uint16 uint32 uint64
ushort windowptr wstring
)

Expand Down