SublimeText 2 のカスタム構文定義を作成しようとしています。正規表現を作成してテストしました (SublimeText2 の正規表現検索を使用)。次のエラーが発生します。
Error in regex: undefined group option in regex
正規表現は次のとおりです。
\b([Aa]|[Tt]he|[Aa]n)\b(?(?![ (),'.a-zA-Z]*\b([Aa]|[Tt]he|[Aa]n)\b)([ (),a-zA-Z]*[0-9]{2,3})|(,,,))
そして、これが私のXML .tmLanguageファイルです
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>techpaper</string>
</array>
<key>name</key>
<string>Tech Paper</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\b([Aa]|[Tt]he|[Aa]n)\b(?(?![ (),'.a-zA-Z]*\b([Aa]|[Tt]he|[Aa]n)\b)([ (),a-zA-Z]*[0-9]{2,3})|(,,,))</string>
<key>name</key>
<string>string.list.element</string>
</dict>
</array>
<key>scopeName</key>
<string>source.techPaper</string>
<key>uuid</key>
<string>092f2f93-b3ad-461d-9ca2-978b1c2bb7ad</string>
</dict>
</plist>
よろしくお願いします。