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

Syntax #25

Merged
merged 15 commits into from
May 2, 2019
Merged

Syntax #25

merged 15 commits into from
May 2, 2019

Conversation

edgardmessias
Copy link
Contributor

@edgardmessias edgardmessias commented Apr 30, 2019

  • Improved preprocessors (close 0.8.12, #ifndef, #else, #endif have mixed colors #23)
  • Improved syntax for multiline string with pragma
  • Added syntax for TEXT INTO and TEXT TO VAR
  • Fixed syntax for IN keyword
  • Fixed syntax for "STATIC FUNCTION"
  • Fixed syntax for name in method and class

@edgardmessias
Copy link
Contributor Author

@edgardmessias
Copy link
Contributor Author

image
image

@APerricone
Copy link
Owner

Hello, a little thing: #pragma __endtext and ENDTEXT are interchangable.
It is because in my tmlanguage we have:

 "end": "(?i:^\\s*(#\\s*pragma)\\s+(__endtext)|(ENDTEXT)\\s*$)",

@edgardmessias
Copy link
Contributor Author

Nice, I will fix

@edgardmessias
Copy link
Contributor Author

@APerricone, done.

@APerricone APerricone merged commit cd78e8f into APerricone:master May 2, 2019
@APerricone
Copy link
Owner

I done some modification, update your code

@edgardmessias
Copy link
Contributor Author

@APerricone, instead of "include": "source.harbour", you can use "include": "$base"

@APerricone
Copy link
Owner

I don't know where $base come from, but in C/C++ syntax created a lot of problem, that are visible in our integration too, see atom/language-c#146
At most we can use $self that is present in the documentation https://macromates.com/manual/en/language_grammars

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0.8.12, #ifndef, #else, #endif have mixed colors
2 participants