I looked at a file that had jedit fold tags. I noticed that #{{{ wasn't recognized as a comment. I looked at the code at it rejected it with this pattern #[^{](.*) really strange way to match end of line comments. I have reduced the 2 rules into 1 rule..and fixed it. Changed: U trunk/Ruby.tmbundle/Syntaxes/Ruby.plist