Browse Source

Update syntax highlighters for .prism/.props file extensions (untested).

git-svn-id: https://www.prismmodelchecker.org/svn/prism/prism/trunk@4646 bbc10eb1-c90d-0410-af57-cb519fbb1720
master
Dave Parker 14 years ago
parent
commit
a51157e11a
  1. 2
      prism/etc/syntax-highlighters/gnome/Overrides.xml
  2. 2
      prism/etc/syntax-highlighters/nedit/prism.pats
  3. 8
      prism/etc/syntax-highlighters/textwrangler/prism.plist
  4. 2
      prism/etc/syntax-highlighters/vim/README

2
prism/etc/syntax-highlighters/gnome/Overrides.xml

@ -19,9 +19,11 @@
<match type="string" value="nondeterministic" offset="0"/> <match type="string" value="nondeterministic" offset="0"/>
<match type="string" value="stochastic" offset="0"/> <match type="string" value="stochastic" offset="0"/>
</magic> </magic>
<glob pattern="*.prism"/>
<glob pattern="*.pm"/> <glob pattern="*.pm"/>
<glob pattern="*.sm"/> <glob pattern="*.sm"/>
<glob pattern="*.nm"/> <glob pattern="*.nm"/>
<glob pattern="*.props"/>
<glob pattern="*.pctl"/> <glob pattern="*.pctl"/>
<glob pattern="*.csl"/> <glob pattern="*.csl"/>
<glob pattern="*.pp"/> <glob pattern="*.pp"/>

2
prism/etc/syntax-highlighters/nedit/prism.pats

@ -37,7 +37,7 @@ nedit.highlightPatterns: PRISM:1:0{\n\
Identifier:"<([A-Za-z_][A-Za-z0-9_]*)>":::PRISM Identifier::\n\ Identifier:"<([A-Za-z_][A-Za-z0-9_]*)>":::PRISM Identifier::\n\
Numeric:"<(([0-9]*(\\.)?[0-9]+([eE]([-+])?[0-9]+)?)|([1-9][0-9]*)|0)>":::PRISM Numeric::\n\ Numeric:"<(([0-9]*(\\.)?[0-9]+([eE]([-+])?[0-9]+)?)|([1-9][0-9]*)|0)>":::PRISM Numeric::\n\
} }
nedit.languageModes: PRISM:.pm .nm .sm .pctl .csl .pp::::::"!&|->:;,.()[]{}=<+*/'?""":
nedit.languageModes: PRISM:.prism .pm .nm .sm .props .pctl .csl .pp::::::"!&|->:;,.()[]{}=<+*/'?""":
nedit.styles: PRISM Comment:darkGreen:Italic\n\ nedit.styles: PRISM Comment:darkGreen:Italic\n\
PRISM Identifier:darkRed:Plain\n\ PRISM Identifier:darkRed:Plain\n\
PRISM Numeric:Blue:Plain\n\ PRISM Numeric:Blue:Plain\n\

8
prism/etc/syntax-highlighters/textwrangler/prism.plist

@ -69,6 +69,10 @@ Copy this file into ~/Library/Application Support/TextWrangler/Language Modules/
</array> </array>
<key>BBLMSuffixMap</key> <key>BBLMSuffixMap</key>
<array> <array>
<dict>
<key>BBLMLanguageSuffix</key>
<string>.prism</string>
</dict>
<dict> <dict>
<key>BBLMLanguageSuffix</key> <key>BBLMLanguageSuffix</key>
<string>.pm</string> <string>.pm</string>
@ -81,6 +85,10 @@ Copy this file into ~/Library/Application Support/TextWrangler/Language Modules/
<key>BBLMLanguageSuffix</key> <key>BBLMLanguageSuffix</key>
<string>.sm</string> <string>.sm</string>
</dict> </dict>
<dict>
<key>BBLMLanguageSuffix</key>
<string>.props</string>
</dict>
<dict> <dict>
<key>BBLMLanguageSuffix</key> <key>BBLMLanguageSuffix</key>
<string>.pctl</string> <string>.pctl</string>

2
prism/etc/syntax-highlighters/vim/README

@ -2,6 +2,8 @@ To install, copy the files prismmodel.vim and prismproperty.vim to a directory w
Then add the following 3 lines to your filetype.vim (on Unix, this can be in ~/.vim/filetype.vim): Then add the following 3 lines to your filetype.vim (on Unix, this can be in ~/.vim/filetype.vim):
au BufRead,BufNewFile *.prism setfiletype prismmodel
au BufRead,BufNewFile *.[pns]m setfiletype prismmodel au BufRead,BufNewFile *.[pns]m setfiletype prismmodel
au BufRead,BufNewFile *.smg setfiletype prismmodel au BufRead,BufNewFile *.smg setfiletype prismmodel
au BufRead,BufNewFile *.props setfiletype prismproperty
au BufRead,BufNewFile *.pctl setfiletype prismproperty au BufRead,BufNewFile *.pctl setfiletype prismproperty
Loading…
Cancel
Save