-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
feat(developer) marker steps 🙀 #9364
Conversation
User Test ResultsTest specification and instructions User tests are not required |
@@ -27,7 +27,6 @@ Markers can appear in both 'emitting' and 'matching-only' areas: | |||
#### Match only | |||
|
|||
- `transform from=` to match markers | |||
- `transform after=` to match markers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where did this come from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
validateVarsMarkers(keyboard: LDMLKeyboard.LKKeyboard, mt : MarkerTracker) : boolean { | ||
keyboard?.variables?.string?.forEach(({value}) => | ||
mt.add(MarkerUse.variable, MarkerParser.allReferences(value))); | ||
return true; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't seem to do validation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It supports validation by checking existence. Though I thought maybe there should be a second looser regex that catches invalid marker ids ?
developer/src/kmc-ldml/test/fixtures/sections/vars/fail-markers-badref-0.xml
Outdated
Show resolved
Hide resolved
…s-badref-0.xml Co-authored-by: Marc Durdin <marc@durdin.net>
Changes in this pull request will be available for download in Keyman version 17.0.151-alpha |
#9119
@keymanapp-test-bot skip