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

Expressions inside string templates #97

Open
mbtools opened this issue May 3, 2023 · 0 comments · May be fixed by #98
Open

Expressions inside string templates #97

mbtools opened this issue May 3, 2023 · 0 comments · May be fixed by #98

Comments

@mbtools
Copy link
Contributor

mbtools commented May 3, 2023

Highlighting of formatting options inside string templates does not work.

test = |Hello { sy-uname ALIGN = RIGHT }. Today is { sy-datum DATE = ISO }|.

https://help.sap.com/doc/abapdocu_756_index_htm/7.56/en-US/index.htm?file=abapcompute_string_format_options.htm

Here are the missing parts but I'm not sure how to integrate them into the grammar 🤷

	<dict>
		<key>match</key>
		<string>(?ix)(?&lt;=\s)(align|alpha|case|country|currency|date|decimals|exponent|number|pad|sign|style|time|timestamp|timezone|width|xsd|zero)(?=\s|=)</string>
		<key>name</key>
		<string>name.property.stringtemplate.abap</string>
	</dict>
	<dict>
		<key>match</key>
		<string>(?ix)(?&lt;=\s)(center|engineering|environment|in|iso|left|leftplus|leftspace|lower|no|out|raw|right|rightplus|rightspace|scale_preserving|scale_preserving_scientific|scientific|scientific_with_leading_zero|sign_as_postfix|simple|space|upper|user|yes)(?=\s)</string>
		<key>name</key>
		<string>value.property.stringtemplate.abap</string>
	</dict>
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 a pull request may close this issue.

1 participant