SublimeText / CoffeeScript

Syntax highlighting and checking, commands, shortcuts, snippets, watched compilation and more.
440 stars 64 forks source link

Syntax highlighting of split-line parameters... #160

Closed Siyfion closed 2 months ago

Siyfion commented 10 years ago

For example:

angular.module('LabelLogicLiveClientApp')
  .controller 'UserCtrl',
  ($scope, $log, $http, $location,
  configOptions, authenticationService, roles, user) ->

    $scope.authService = authenticationService
    $scope.currentUser = $scope.authService.getUser()

As you can see, GitHub correctly highlights both lines of parameters, even if there is a line break splitting them up. However better coffeescript does not, it removes all syntax highlighting all together if there is a line break:

screen shot 2014-07-03 at 09 14 24

ghost commented 10 years ago

Not only that, in the case that a function or constructor has parameters over 2 or more lines, it gets removed from the symbol navigation as well (ctrl+r)