GithubHelp home page GithubHelp logo

reyman / netlogo-highlight Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 8.0 18 KB

Repository for netlogo highlight template, contribution is welcome !

License: GNU General Public License v3.0

Emacs Lisp 100.00%

netlogo-highlight's People

Contributors

travitch avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

netlogo-highlight's Issues

some identifier characters aren't treated as such

so for example random? gets highlighted like random is a keyword and the ? part is separate. but actually it's a single identifier, which the ? is part of

I think this has to do with the use of \w in regexes to separate tokens. in regex syntax a character like ? isn't a β€œword” character, but in NetLogo it is.

https://github.com/NetLogo/NetLogo/blob/headless/project/TokenLexer.flex has a list of what characters are allowed in identifiers:

IDENTIFIER_CHAR={LETTER} | {DIGIT} | [_\.?=\*!<>:#\+/%\$\^\'&-]

so it's letters, digits, and these characters: _.?=*!<>:#+/%$^'&-

Licence/acknowledgements

Monsieur Reyman, thank you for making this script available. May I suggest that you add a licence, to clarify the use that others may make of your excellent code? I am about to start a project using NetLogo, and I also like to be able to acknowledge and tools that I use.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.