Community
    • Login

    Built-In Operators? (Lua)

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 4.0k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • StormFXS Offline
      StormFX
      last edited by StormFX

      Is there somewhere I can look at/add to the built-in operators for a language? To be specific, Lua seems to be missing the “.” operator (and a few others) and it’s annoying to have syntax highlighting fail because of a parent/child reference. I’ve tried creating a custom language so I could “fix” it, but apparently the UDL system doesn’t like comments with similar patterns (-- for single-line comments breaks --[[ for multiline comments). :/

      1 Reply Last reply Reply Quote 0
      • StormFXS Offline
        StormFX
        last edited by

        I was able to simulate the appropriate behavior with UDL. I just had to use a delimiter for line comments rather than the line comment section. Silly, but it works.

        1 Reply Last reply Reply Quote 0
        • guy038G Online
          guy038
          last edited by guy038

          Hello StormFX,

          May be, you could be interested by the Gary Mod 10 Lua syntax highlighter plugin for N++, that you can download, from the link, below :

          https://code.google.com/p/npp-gmod-lua/downloads/detail?name=NppGmodLuaPlugin-v1.5.zip

          For a manual installation :

          • Extract the GmodLua.dll library, at top level of this archive, in your N++ plugins folder

          • Extract the GmodLua.xml file, located in the Config folder of the archive, in your active N++ Config folder

          It works nice, with my 6.8.1 N++ installation :-))


          Main page can be found at the address :

          https://code.google.com/p/npp-gmod-lua/

          Just, note that this site is, from now on, archived and read-only and that it moved to GitHub :

          https://github.com/kylefleming/npp-gmod-lua

          However, you’ll, still, find some information and the release notes, from the two links, below :

          https://code.google.com/p/npp-gmod-lua/wiki/HowTos

          https://code.google.com/p/npp-gmod-lua/wiki/IntroAndChangeLog


          You may modify the foreground and/or background colours of any of the 19 GmodLua defined styles :

          • From the Style configurator, choosing GmodLua in the Language drop-down list, then any style, proposed in the Style drop-down list

          • Directly changing values of the fgColor/bgColor items, in the LexerStyles node, at the end of the GmodLua.xml file

          Best Regards,

          guy038

          P.S :

          I’m wondering : are you the same guy, to whom I replied, in March 2014, on SourceForge forum, and who asked for help, with these funny terms Thx 4 F1 ?

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors