Hi,

I want to edit some files that use the Windows ini syntax (they are actually configuration files for an application written in Python). I tried to write my own CLM, but failed (and the samples in the SDK use the older syntax, no the new grep based one, so no help there). Does anyone have such a CLM, or can someone help me to fix my code?

Thanks,

Maarten

PS Relevant bit of my code:

<key>Language Features</key>
<dict>
        <key>Function Pattern</key>
<string>^[[:space:]]*\[(?P&lt;function_name&gt;[[:print:]]+?)\]</ string>
        <key>Identifier and Keyword Character Class</key>
        <string>[[:alnum:]]</string>
        <key>Comment Pattern</key>
        <string>(?P&lt;comment&gt;#.+)$</string>
…
</dict>

The function pattern works until I add the Comment Pattern, and the comment pattern selects the comments I tested it on (with the find dialog). Micro sample file:

[OMCLDO2]
swath = CloudFractionAndPressure # swath name for the OMCLDO2 product file.
; more comments
number_of_products = 2

--
We demand rigidly defined areas of doubt and uncertainty.



--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to