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

Add syntax highlighting for JavaScript #337

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions JavaScript-DocBlockr.YAML-tmLanguage
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# [PackageDev] target_format: plist, ext: tmLanguage
---
name: JavaScript DocBlockr
scopeName: source.js.docblockr
fileTypes: [js]
uuid: 27fe7d8c-8d0a-4d30-96e3-47e47b9d6b77

patterns:
- name: comment.block.documentation.docblockr
begin: '/\*\*'
end: '\*/'
patterns:
- name: keyword.other.docblockr
match: '@\w+'

- include: source.js
...
40 changes: 40 additions & 0 deletions JavaScript-DocBlockr.tmLanguage
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>js</string>
</array>
<key>name</key>
<string>JavaScript DocBlockr</string>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>/\*\*</string>
<key>end</key>
<string>\*/</string>
<key>name</key>
<string>comment.block.documentation.docblockr</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>@\w+</string>
<key>name</key>
<string>keyword.other.docblockr</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>source.js</string>
</dict>
</array>
<key>scopeName</key>
<string>source.js.docblockr</string>
<key>uuid</key>
<string>27fe7d8c-8d0a-4d30-96e3-47e47b9d6b77</string>
</dict>
</plist>