Sublime Forum

Dev Build 2063

#1

Dev Build 2063 is out now.

Syntax highlighting for a few frequently requested languages has been added: Clojure, Haml, reStructuredText and Scala (Scala was there previously, but not well supported). In the course of doing this I’ve also fixed a long standing issue with tmLanguage rules that can match 0 characters. If you’ve had a problem with a .tmLanguage file previously, I’d encourage you to give it a go again now. The View/Syntax menu has been orgainsed by package, which should cut down clutter to some degree.

Also new in this build is the ability to open files using encodings other than UTF-8 and UTF-16, via the “Reopen with Encoding” menu. The encoding will be preserved when saving, unless there are characters that aren’t representable with the current encoding, in which case it’ll be converted to UTF-8. It’s not yet possible to explicitly choose a different encoding to save with. Multi-byte encodings are also not yet supported.

Unless any issues turn up, I’m planning on turning 2063 into the next regular build tomorrow.

0 Likes

#2

Wow, this is fast response to issues.

0 Likes

#3

Thanks for the release!

Minor issue re. organizing syntax defs by package:

AAA

Python > …tmLanguage
Support > …tmLanguage

ZZZ

“Support” is a subdirectory of “AAAPackageDev” in my “Packages” folder. It’d make more sense to group all syntax defs under the package’s top level dir, i.e:

AAAPackageDev > …tmLanguage

Or, just as it’s done with snippets:

AAAPackageDev > Support > …tmLanguage

It’s infrequent to have many .tmLanguage files inside a package, so I’d be ok with showing the top level dir for the container package only.

0 Likes

#4

I rather meant: it’s infrequent to have subdirectories containing many .tmLanguage files within a package.

0 Likes

#5

Yeah, that’d make much more sense - will fix

0 Likes

#6

Thanks for the update.

Btw, there is a way that this can be done?
http://content.screencast.com/users/iamntz/folders/Jing/media/b66bcbd5-899b-4b76-a4f5-a24a2ad7d52b/2011-06-14_1618.png
(highlight bookmarked line, preferably with another color than current line colors)

0 Likes

#7

I just put a personalized Main.sublime-menu into the User package directory.

As a result I get the Items of the Default/Main.sublime-menu and of the User/Main.sublime-menu. All menu items are doubled.

It would be nice if it will behave like sublime-keymap and overwrite default items.

0 Likes

#8

This build introduced some pretty bad bug.

In html document, when I type “script” and press tab it inserts some completely unrelated snippet, this one: Data\Packages\Scala\script header.tmSnippet
It even has different trigger defined from script (“content”).

0 Likes

#9

I get this on “script” + tab in an HTML document:

#!/bin/sh
exec scala “$0” “$@”
!#

Maybe it helps to track down the issue. I am on OSX.

0 Likes

#10

The snippet’s missing a scope selector to make it behave well. This should do the trick:

[code]<?xml version="1.0" encoding="UTF-8"?>

content #!/bin/sh exec scala "\$0" "\$@" !#

$1
name
script header
tabTrigger
script
uuid
11D5086B-FD25-4B33-92E3-4DEADCF4119D
scope
source.scala


[/code]

0 Likes

#11

[quote=“tgkeul”]I just put a personalized Main.sublime-menu into the User package directory.

As a result I get the Items of the Default/Main.sublime-menu and of the User/Main.sublime-menu. All menu items are doubled.

It would be nice if it will behave like sublime-keymap and overwrite default items.[/quote]

Menu merging works differently than key binding merging, because of the different shape of the data. Details are here

0 Likes

#12

Build 2064 is out now, addressing the snippet issue, and with a couple of other minor changes.

0 Likes

#13

@jps: any chance of doing this?
Or there is any way of doing it with plugins?

thanks.

0 Likes

#14

[quote=“iamntz”]@jps: any chance of doing this?
Or there is any way of doing it with plugins?[/quote]

It’s not possible to do this atm

0 Likes

#15

Hello. I have one request.

When I have multiple layout set (more then one column or rows) it is hard to see which window is active.
When i double-click on new file in Side bar to open it, its often open in wrong window group.
Then i have to drag it in the right place.
It would be great if the active window is marked in some way.

By the way i am registered user :wink: if this increases my request priority :smile: hehehe :smile:

0 Likes

#16

Hi jps,

Again great work on all the updates, couldn’t code in any other editor!

I was just wondering if it was possible to add the ‘.less’ extension to be auto-highlighted using the ‘CSS’ syntax.

.less applies to javascript processed CSS files using the less.js project : lesscss.org/

Although there are some differences, the current CSS syntax does a great job of highlighting 90% of the less syntax due to its similarities to CSS :smile:

If this can not be made default, does anyone know a way I could get this to work locally other than setting a forced syntax every file open?

Thanks again!

Dayle.

0 Likes

#17

From the menu:
View / Syntax / Open all with current extension as… / CSS

0 Likes

#18

@daylerees: check this. After that, you can switch syntax with ease.

0 Likes

#19

you could use the LESS.tmLanguage file from https://github.com/mathewbyrne/less.tmbundle/tree/master/Syntaxes. Unfortunately “goto symbol” does not work in this case.

0 Likes

#20

Aha great! Thanks for the replies guys.

0 Likes