Moonfire Games

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: minor thing in csharp-mode.el  (Read 1488 times)

Cheeso

  • 100 point character
  • **
  • Status: 0
  • Posts: 5
    • View Profile
minor thing in csharp-mode.el
« on: April 12, 2008, 06:46:23 PM »
There's a line in csharp-model.el that reads:
(add-to-list 'auto-mode-alist '("\\.cs" . csharp-mode))

it should be, instead:
(add-to-list 'auto-mode-alist '("\\.cs\\'" . csharp-mode))

the \\' in regexp-speak matches the end of the string.  In other words, the pattern is a file that ends with ".cs".  As it is, your pattern matches anything with a .cs in it, anywhere.  So, a file like Alpha.cst.bin will match, and will be inserted into csharp-mode.

I tried reporting this via your bug database but got nowhere. see my other msg about that.
Logged
Pages: [1]   Go Up
« previous next »