Skip to content

Commit 933fafe

Browse files
committed
Add initial semantic classes.
1 parent d4b0b30 commit 933fafe

File tree

3 files changed

+31
-6
lines changed

3 files changed

+31
-6
lines changed
Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,38 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
55
<key>beforeRunningCommand</key>
66
<string>nop</string>
77
<key>command</key>
8-
<string>if grep &lt;&lt;&lt;${TM_CURRENT_WORD:-!} -Esq '[@a-zA-Z]+'
8+
<string>#!/usr/bin/env bash
9+
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] &amp;&amp; . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
10+
11+
if grep &lt;&lt;&lt;${TM_CURRENT_WORD:-!} -Esq '[@a-zA-Z]+'
912
then exit_show_html "&lt;meta http-equiv='Refresh' content='0;URL=http://manual.phpdoc.org/HTMLframesConverter/earthli/phpDocumentor/tutorial_tags.${TM_CURRENT_WORD#@}.pkg.html'&gt;"
1013
else echo "Nothing to lookup (hint: place the caret on a tag)"
1114
fi</string>
1215
<key>input</key>
1316
<string>none</string>
17+
<key>inputFormat</key>
18+
<string>text</string>
1419
<key>keyEquivalent</key>
1520
<string>^h</string>
1621
<key>name</key>
1722
<string>Documentation for Tag</string>
18-
<key>output</key>
19-
<string>showAsTooltip</string>
23+
<key>outputCaret</key>
24+
<string>afterOutput</string>
25+
<key>outputFormat</key>
26+
<string>text</string>
27+
<key>outputLocation</key>
28+
<string>toolTip</string>
2029
<key>scope</key>
2130
<string>comment.block.documentation.phpdoc.php</string>
31+
<key>semanticClass</key>
32+
<string>lookup.define.php</string>
2233
<key>uuid</key>
2334
<string>42F50AE3-4F1C-43EB-9722-D80261A19625</string>
35+
<key>version</key>
36+
<integer>2</integer>
2437
</dict>
2538
</plist>

Commands/Lookup word in PHP manual.plist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ fi</string>
8787
<string>toolTip</string>
8888
<key>scope</key>
8989
<string>source.php</string>
90+
<key>semanticClass</key>
91+
<string>lookup.define.php</string>
9092
<key>uuid</key>
9193
<string>412481DC-89B7-11D9-9FE3-000A9584EC8C</string>
9294
<key>version</key>

Commands/Run PHP.plist

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,25 @@
1111
/usr/bin/env ruby -- "$TM_BUNDLE_SUPPORT/lib/php_mate.rb"</string>
1212
<key>input</key>
1313
<string>document</string>
14+
<key>inputFormat</key>
15+
<string>text</string>
1416
<key>keyEquivalent</key>
1517
<string>@R</string>
1618
<key>name</key>
1719
<string>Run</string>
18-
<key>output</key>
19-
<string>showAsHTML</string>
20+
<key>outputCaret</key>
21+
<string>afterOutput</string>
22+
<key>outputFormat</key>
23+
<string>html</string>
24+
<key>outputLocation</key>
25+
<string>newWindow</string>
2026
<key>scope</key>
2127
<string>source.php</string>
28+
<key>semanticClass</key>
29+
<string>process.run.php</string>
2230
<key>uuid</key>
2331
<string>774E75DA-A747-4CB4-B8AF-DE720B01E295</string>
32+
<key>version</key>
33+
<integer>2</integer>
2434
</dict>
2535
</plist>

0 commit comments

Comments
 (0)