Search results

  1. cakyrespa

    ASH syntax highlighting in Kate

    Yeah, just figuring out how to do it. Implementing C-based commented (// and /**/) is easy, single character EOL comments are a bit harder with cc-mode. Let me figure out how to do it and put it in some documentation of some sort. That way, if you want it, you know how to do it, but it won't...
  2. cakyrespa

    ASH syntax highlighting in Kate

    Bah, I couldn't find my .emacs example, must have accidently deleted it. (defun my-ash-mode-hook () (progn (setq tab-width 4) (c-set-offset 'substatement-open 0))) (add-hook 'ash-mode-hook 'my-ash-mode-hook) Something like that should work. You can also put a function in the "0" but...
  3. cakyrespa

    ASH syntax highlighting in Kate

    http://www.informatik.uni-hamburg.de/RZ/software/emacs/cc-mode/cc-mode_9.html#SEC33 http://www.informatik.uni-hamburg.de/RZ/software/emacs/cc-mode/cc-mode_7.html#SEC28 Check out the above links. You can set up custom indenting for your style using some of those. I set up my .emacs to include...
  4. cakyrespa

    ASH syntax highlighting in Kate

    Awesome, that is what I guessed it was. I should have that done then. Not sure if I'm missing other keywords, at some point, I should really go through the Java code and see what I miss (or wait until someone points out my mistake). Current issues: * $item[bob's toy] verses some_variable[bob's...
  5. cakyrespa

    ASH syntax highlighting in Kate

    Yeah, just takes a bit to figure out how everything plays together with cc-mode. But, I did make a few other improvements, mainly to import and cleaning up "notify" and "script" (though, not entirely sure how to use that directive). http://svn.mfgames.com/KoLmafia/emacs/ash-mode.el
  6. cakyrespa

    ASH syntax highlighting in Kate

    Yeah, I tried putting it before "c-basic-matchers-before" but at that point, they already identified that it was an errant string. I just need to delve into the code a bit more and find where they determine that first. I went with the safest approach (treating [] as quotes) until I can figure it...
  7. cakyrespa

    ASH syntax highlighting in Kate

    Well, I couldn't figure out the silly little thing with the regex on the aggregates. Part of it is that ash allows this: $item[Doc Galaktik's Ailment Ointment]) but it doesn't allow this: string [string] values; values [Doc's Galaktik's Ailment Ointment] = "234 bob"; I got a regexp to...
  8. cakyrespa

    ASH syntax highlighting in Kate

    The movie, 9. My wife and I decided that it would be a date. And dates takes priority over programming... so I was told. :)
  9. cakyrespa

    ASH syntax highlighting in Kate

    Bah, moral high ground. :P I was going to do it anyways. Actually, I have a large hunk of a version done. Just need to fix a regex on [] where it is sometimes a string, sometimes not ($item[bob] verses some_map[bob]), and add in the keywords I've missed. But, first to go see 9. I should have...
  10. cakyrespa

    ASH syntax highlighting in Kate

    It is on. :P Veracity: Want to give us a list of your "wants and needs" as it pertains to the Emacs mode? I presume it includes font-locking, but best to ask.
  11. cakyrespa

    ASH syntax highlighting in Kate

    Heh, I could probably create a cc-mode derived mode for ASH too. I did create one of the csharp-modes. But, if you want anything less fancy, can't do much less than that.
  12. cakyrespa

    ASH syntax highlighting in Kate

    Mainly, it set it up so any file ending in .ash will automatically have this syntax. So, you don't need to manually set it up. I also made the following keywords: call, remove, exists, foreach, upto by, downto, in, repeat, until. I made the following types: int, float, boolean, string...
  13. cakyrespa

    Algebra in ASH?

    Awesome, thank you for posting the numbers. It does seem more reasonable, 10M for 2.3 seconds. I love how fast computers have gotten these days.
  14. cakyrespa

    ASH syntax highlighting in Kate

    http://svn.mfgames.com/KoLmafia/kate/ash.xml Not really sure if anyone is interested, but I started setting up a syntax highlighting for Kate (a KDE editor). It isn't perfect, but at least most of the variables are highlighted enough for me to enjoy editing. I also think it makes ASH editing...
  15. cakyrespa

    Map of current effects and/or inventory?

    Ah, cool, that is what I missed ($effects[]). And figures I'd miss get_inventory() too. Thank you.
  16. cakyrespa

    Map of current effects and/or inventory?

    My search-fu appears to be down, but I was trying to figure out how to get a list of all the effects currently on a character. Likewise, a list of things they have in their bag (but not closet). I'm also not sure if I can use the $effect table, since I would expect that to be treated as an...
  17. cakyrespa

    ZLib -- Zarqon's useful function library

    Maybe, but I would think it would be easier to write that file by hand and not try to dynamically build up the vars. But, I also imagined it as a per-script file, so I would have one for each of my scripts. That way, if you gather up all the vars file in a directory, you have all the variables...
  18. cakyrespa

    ZLib -- Zarqon's useful function library

    I got to thinking about a vars editor for zlib. Mainly on how a script writer would be able to identify the variables of note and give some settings for what values are added. For example, technically you could put "bob" in the threshold variable for zlib, but it wouldn't make sense. And the...
  19. cakyrespa

    ZLib -- Zarqon's useful function library

    Write it first, and if it is good, then the password will come. :P
  20. cakyrespa

    Installing mafia on Ubuntu

    Wait until people really start getting into Windows' PowerShell, then the new agonies of this will come back with a vengeance. Assuming bash for all of these, mainly because it is my preferred shell. I'm sure there are graphical clients, but from the command line: ps ux | grep -i kolmafia |...
Top