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

Parsing error for string annotation on character ':' #59

Closed
troopa81 opened this issue Dec 11, 2024 · 2 comments
Closed

Parsing error for string annotation on character ':' #59

troopa81 opened this issue Dec 11, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@troopa81
Copy link
Contributor

With the following sip file content

 void printTestDeprecated() /Deprecated="Example: this"/;

I get the following error message

sip-install: /home/julien/myconf/sip-examples/deprecated/deprecated.sip: line 21: column 31: 'Example' is not a known qualifier

There is no other way to escape the ':'

@philthompson10 philthompson10 added the bug Something isn't working label Dec 18, 2024
@philthompson10 philthompson10 self-assigned this Dec 19, 2024
philthompson10 added a commit to philthompson10/sip that referenced this issue Dec 19, 2024
The value of a string annotation uses the `;` and `:` characters to allow
platform- and feature-specific values to be defined.  These special
characters can now be escaped using a leading `\\`.  This capability has
now been documented.

Resolves Python-SIP#59
@philthompson10
Copy link
Contributor

: and ; can now be escaped with \. The documentation has been updated to describe what's going on.

@troopa81
Copy link
Contributor Author

Thanks for fixing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants