Comments (2)
:[b:e]
- sounds like it might do what I want it to do, but doesn't (apparently it doesn't like thefunction () { }
Yeah this gets close, but the limitation is it won't match across the whitespace between function() { }
. If you are sure that the second argument is always of the form function() {...}
this corresponds to two expressions like :[f:e] :[braces:e]
where f
matches function()
and braces
match the block in braces {...}
.
Sooo... I guess I'm looking for a non-empty variant of :[x] ?
The alternative here is to use a rule to case out on non-empty matches of :[x]
. Something like -rule 'where :[x] != ""'
should work on the command line?
from comby.
Thanks for responding! I appreciate the workaround. Feels to me like the -rule
approach would probably be best for my case, I'd prefer not to have to make assumptions on the form of the particular expression.
Seems like this would be a common enough use case that it might warrant special syntax?
from comby.
Related Issues (20)
- Tarball checksum has changed HOT 2
- Cannot install on Windows WSL (libev.so.4 not found) HOT 1
- Ruby matching with for in method names HOT 3
- Look a head? HOT 1
- Installer failing on Debian 11.2, solved installing libev-dev HOT 4
- Trying to match a PHP simple template HOT 1
- Typo in the doc example for rewrite rule HOT 1
- Building from source fails on Fedora 36 - "error while fetching sources from..." HOT 2
- Error patching cpp when -review is used HOT 3
- Uncaught exception "broken pipe" HOT 1
- Are matches supposed to happen on partial tokens? HOT 4
- comby ignores files in current dir or explicitly provided dir when its hidden HOT 3
- request: -config without recursive directory search HOT 1
- How to match expression with spaces function parameters HOT 1
- `comby -review` is broken for filepaths containing spaces HOT 1
- comby 1.8.1 failed to build against ocaml 5.0.0 HOT 4
- builds for arm64 HOT 2
- Only first match is located HOT 1
- Keep getting Exception: (Sys_error "xxxx.swift: Read-only file system
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comby.