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

Update font lock keywords #8

Closed
swsnr opened this issue Aug 18, 2013 · 6 comments
Closed

Update font lock keywords #8

swsnr opened this issue Aug 18, 2013 · 6 comments

Comments

@swsnr
Copy link
Contributor

swsnr commented Aug 18, 2013

I noticed that some font lock keywords are missing, such as require in a class. We need to compile a comprehensive list of keywords and match it with the keywords in the mode.

Geez! This mode is really in a pretty bad shape…

@bbatsov
Copy link
Contributor

bbatsov commented Aug 18, 2013

I guess we know which editor they use in Puppet Labs...

@bbatsov
Copy link
Contributor

bbatsov commented Aug 18, 2013

Here's some brilliant piece of code:

(defvar puppet-mode-map
  (let ((map (make-sparse-keymap)))
    (define-key map "\C-j" 'newline-and-indent)
    (define-key map "\C-m" 'newline-and-indent)
    map)
  "Key map used in puppet-mode buffers.")

@bbatsov
Copy link
Contributor

bbatsov commented Aug 18, 2013

And here's a link to the relevant section of documentation for future reference http://docs.puppetlabs.com/puppet/3/reference/lang_reserved.html

@swsnr
Copy link
Contributor Author

swsnr commented Aug 18, 2013

Pending PR for (some?) of this at puppetlabs/puppet-syntax-emacs#4

swsnr added a commit that referenced this issue Aug 18, 2013
@swsnr
Copy link
Contributor Author

swsnr commented Aug 18, 2013

@bbatsov I have thrown this precious gem away ;)

@swsnr swsnr mentioned this issue Aug 20, 2013
@swsnr
Copy link
Contributor Author

swsnr commented Mar 10, 2014

Fixed in dc368df

@swsnr swsnr closed this as completed Mar 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants